Skip to main content

build_agent

Function build_agent 

Source
pub fn build_agent(
    def: &ManagedAgentDef,
    model: Arc<dyn Llm>,
) -> Result<Arc<dyn Agent>, BuildError>
Expand description

Build a runnable agent from a ManagedAgentDef and a resolved model.

See the sandbox-enabled variant for full documentation.