Skip to main content

run_agent

Function run_agent 

Source
pub async fn run_agent(
    configuration: &Configuration,
    workspace: &str,
    path: &str,
    run_agent_request: RunAgentRequest,
    memory_id: Option<&str>,
) -> Result<Uuid, Error<RunAgentError>>
Expand description

Runs the ai_agent resource at path as stored, for any caller who can read it (operators included), as the caller, who needs access to the agent’s AI resource and to whatever its tools use. With memory_id, the run is a turn of the caller’s conversation with the agent; without, a single run.