Skip to main content

Interface: ToolCall<NAME, PARAMETERS>

A tool call contains all information required to execute a tool. It can be generated by a language model.

Type parameters

NameTypeDescription
NAMEextends stringThe name of the tool as a string.
PARAMETERSPARAMETERSThe parameters for the tool.

Properties

args

args: PARAMETERS

The arguments for the tool.

Defined in

packages/modelfusion/src/tool/ToolCall.ts:16


id

id: string

The id of the tool call.

Defined in

packages/modelfusion/src/tool/ToolCall.ts:10


name

name: NAME

The name of the tool.

Defined in

packages/modelfusion/src/tool/ToolCall.ts:13