pub fn execute_agent_turn(config: &mut AgentTurnConfig) -> AgentTurnOutcomeExpand 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.