ChatCompletionTool interface

A function tool that can be used to generate a response.

Properties

function

The function definition exposed to the model as a tool.

type

The type of the tool. Currently, only function is supported.

Property Details

function

The function definition exposed to the model as a tool.

function: FunctionObject

Property Value

type

The type of the tool. Currently, only function is supported.

type: "function"

Property Value

"function"