Changelog
Source:NEWS.md
LLMAgentR 0.3.0 (Upcoming Release – May 2025)
New Features
Reusable Code Agent with Builder Pattern
Thebuild_code_agent()
function now supports a builder pattern. Ifuser_input
is omitted, the function returns a reusable agent (closure) that can handle multiple queries interactively. This allows for flexible integration in iterative coding workflows, similar to the existingbuild_researcher_agent()
.Reusable Interpreter Agent
Thebuild_interpreter_agent()
function now also supports a builder pattern. Whencode_output
is omitted, it returns a reusable interpreter function that can process multiple outputs (tables, model results, charts, etc.) on demand. This provides a consistent interface for explaining analysis results dynamically.
Improvements
-
Dual Invocation Support
Users can now call bothbuild_code_agent()
andbuild_interpreter_agent()
in two ways:-
One-shot mode – Provide the input (e.g.,
user_input
,code_output
) for immediate interpretation or code generation. - Builder mode – Omit the input to return a persistent agent function.
-
One-shot mode – Provide the input (e.g.,
-
Enhanced Documentation
The roxygen examples have been expanded to illustrate both usage patterns clearly for both agents, including structured return objects and typical use cases.
Compatibility
- This update is fully backward-compatible. Existing calls to
build_code_agent()
andbuild_interpreter_agent()
that use the one-shot pattern will continue to work without modification.