src/agents/decorators.py exports tool as a direct alias for function_tool, along with input_guardrail, output_guardrail, tool_input_guardrail, and tool_output_guardrail as the public decorator surface of the SDK.[1]
Sources
Search for a command to run...
src/agents/decorators.py exports tool as a direct alias for function_tool, along with input_guardrail, output_guardrail, tool_input_guardrail, and tool_output_guardrail as the public decorator surface of the SDK.[1]
Sources