Extending the functionality of Agents for structured output or performing tasks.
name
, description
, and parameters
are part of the function definition that is used by model to learn about the tool’s capabilities and decide when it should be called. The handler
is the function that is executed by the Agent if the model decides that a particular Tool should be called.
Here is a simple tool that lists charges for a given user’s account between a date range:
name
and description
parameters help the model determine when the particular Tool should be called.
.nullable()
(not .optional()
):