Configure a handoff
Withspecialist already created, add this to the router’s AgentConfig:
prompts.ResolveHandoffs in the router’s instruction provider, usually through prompts.DefaultResolvers(), so the prompt describes the transfer options.
Continue with a specialist
StickyHandoff controls whether subsequent runs entering through the original agent continue with the last specialist. Configure it deliberately and preserve conversation history for continuity. Build the handoff graph before starting durable workers; AddHandoffs updates the stored configuration as well as the local agent.
Keep tool authorization consistent across the agents that can own a conversation. Transferring control is not permission to cross a namespace or expand the user’s access.