Skip to content

Variable: ChatToolCallFunctionSchema

const ChatToolCallFunctionSchema: ZodObject<{ arguments: ZodString; name: ZodString; }, $strip>

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.