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). The run is the caller’s, or the agent’s on_behalf_of when its run_on_behalf_of is set; the caller’s inputs may then not reference variables or resources. With memory_id, the run is a turn of the caller’s conversation with the agent; without, a single run.