Expand description
The handoff_to_user tool: pauses the agent loop with an interrupt that surfaces a message to
the user; on resume the user’s reply is the tool result.
Structs§
- Make
Handoff ToUser Options - Options for
make_handoff_to_user(MakeHandoffToUserOptions). - Make
Handoff ToUser Options Builder - Use builder syntax to set the inputs and finish with
build().
Constants§
- HANDOFF_
INTERRUPT_ NAME - The name of the interrupt the tool raises (
HANDOFF_INTERRUPT_NAME), the same whatever the tool is called, so callers can match handoffs inAgentResult::interrupts.
Functions§
- handoff_
to_ user - The default
handoff_to_usertool. - make_
handoff_ to_ user - Creates a handoff tool. The first call raises an interrupt named
HANDOFF_INTERRUPT_NAMEwhose reason ismessage; once answered, the reply is the result.