Skip to content

Type Alias: ChatToolCallFunction

ChatToolCallFunction = z.infer<typeof ChatToolCallFunctionSchema>

The function a tool call invokes, with its arguments as a JSON string.

  • name: Function name the model wants to invoke.
  • arguments: JSON-encoded argument object. Streamed in fragments, so assemble before parsing.