Reusable Code Agent with Builder Pattern
The build_code_agent()
function now supports a builder pattern. If user_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 existing build_researcher_agent()
.
Reusable Interpreter Agent
The build_interpreter_agent()
function now also supports a builder pattern. When code_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.
build_code_agent()
and build_interpreter_agent()
in two ways:user_input
, code_output
) for immediate interpretation or code generation.Builder mode – Omit the input to return a persistent agent function.
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.
build_code_agent()
and build_interpreter_agent()
that use the one-shot pattern will continue to work without modification.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.