Skip to main content

Module handoff_to_user

Module handoff_to_user 

Source
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§

MakeHandoffToUserOptions
Options for make_handoff_to_user (MakeHandoffToUserOptions).
MakeHandoffToUserOptionsBuilder
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 in AgentResult::interrupts.

Functions§

handoff_to_user
The default handoff_to_user tool.
make_handoff_to_user
Creates a handoff tool. The first call raises an interrupt named HANDOFF_INTERRUPT_NAME whose reason is message; once answered, the reply is the result.