Skip to main content
The @tool decorator converts a function into a Function that agents can call. Use it bare (@tool) or with the parameters below (@tool(...)).

Parameters

requires_confirmation, requires_user_input, and external_execution are mutually exclusive. Enable at most one for a tool.