Skip to main content

execute_agent_turn

Function execute_agent_turn 

Source
pub fn execute_agent_turn(config: &mut AgentTurnConfig) -> AgentTurnOutcome
Expand description

Execute an agent turn, optionally through a DAG pipeline.

This is the entry point called by the chat layer when an @mention resolves to a roster agent. If the agent has a DAG pipeline definition (in dag_pipeline_json), the pipeline is executed with the agent-turn executor. Otherwise, the function returns SingleTurn and the caller should fall through to run_chat_inference_for_agent.

If config.dag_pipeline is provided, it overrides the agent’s stored pipeline definition.