[KongchangAI]
Concept@function_tool

function_tool

A decorator provided by the OpenAI Agents SDK that marks an ordinary Python function as a tool callable by an agent.

Timeline (last 90 days)

Oct 9

The SDK can convert any ordinary function into a tool callable by an Agent via the function_tool decorator.

Unverified50%
Oct 9

In practice, the OpenAI API Key is loaded from a .env file via load_dotenv(), and the name parameter of function_tool can be used to override the tool name.

Unverified60%

All Facts (2)

Source Articles