Skip to main content
ParameterTypeDescription
namestrOverride for the function name
descriptionstrOverride for the function description
stop_after_tool_callboolIf True, the agent will stop after the function call
tool_hookslist[Callable]List of hooks that wrap the function execution
pre_hookCallableHook to run before the function is executed
post_hookCallableHook to run after the function is executed
requires_confirmationboolIf True, requires user confirmation before execution
requires_user_inputboolIf True, requires user input before execution
user_input_fieldslist[str]List of fields that require user input
external_executionboolIf True, the tool will be executed outside of the agent’s control
cache_resultsboolIf True, enable caching of function results
cache_dirstrDirectory to store cache files
cache_ttlintTime-to-live for cached results in seconds (default: 3600)