Share via


AgentsNamedToolChoice interface

Specifies a tool the model should use. Use to force the model to call a specific tool.

Properties

function

The name of the function to call

type

the type of tool. If type is function, the function name must be set.

Property Details

function

The name of the function to call

function?: FunctionName

Property Value

type

the type of tool. If type is function, the function name must be set.

type: AgentsNamedToolChoiceType

Property Value