概念@function_tool
function_tool
OpenAI Agents SDK 提供的装饰器,用于将普通 Python 函数标记为智能体可调用的工具。
时间轴 (近 90 天)
10月9日
SDK 通过 function_tool 装饰器可以把任意普通函数转换成 Agent 可调用的工具
待验证50%
10月9日
实战中通过 load_dotenv() 从 .env 文件加载 OpenAI API Key,并可用 function_tool 的 name 参数覆盖工具名称
待验证60%