Agent Handoff
POST /api/agents/handoff
Execute a controlled handoff between agents with context preservation.
Args: request_data: Handoff request containing source/target agents and context request: FastAPI Request object for backend service access
Returns: AgentHandoffResponse: Handoff execution status and tracking information
Note: Orchestrates seamless agent handoffs with full conversation context transfer, ensuring continuity of service and proper workflow coordination between agents for optimal user experience and task completion.
Request Body required
Section titled “Request Body required ”Agent task handoff request model.
Represents a request to hand off an ongoing task or conversation from one agent to another more suitable agent. Includes full conversation context and handoff reasoning for seamless transitions.
Fields: from_agent: Agent initiating the handoff to_agent: Agent receiving the handoff conversation_context: Full conversation history and state handoff_reason: Explanation for why handoff is occurring priority: Handoff priority level (default: “medium”) handoff_time: Timestamp when handoff was requested
Used By: - POST /api/agents/handoff endpoint - Agent handoff workflow coordination - boot coordinator orchestrator for optimal agent selection - Handoff history and analytics tracking - Multi-agent conversation management
object
Handoff timestamp
Responses
Section titled “ Responses ”Successful Response
Agent handoff execution response model.
Provides handoff status, tracking identifier, and execution results for controlled agent handoffs with context preservation.
Fields:
status: Handoff execution status (success/failed)handoff_id: Unique tracking identifier for handoffresult: Handoff execution success flagmessage: Human-readable handoff status message
Validation Error