Share via


ToolChoiceFunction interface

Use this option to force the model to call a specific function.

Extends

Properties

name

The name of the function to call.

type

For function calling, the type is always function.

Property Details

name

The name of the function to call.

name: string

Property Value

string

type

For function calling, the type is always function.

type: "function"

Property Value

"function"