Skip to content

Type Alias: ChatToolCall

ChatToolCall = z.infer<typeof ChatToolCallSchema>

One tool call attached to an assistant turn.

  • id: Tool-call identifier echoed on the matching tool message.
  • type: Tool type. function in practice; widened so unrecognized values round-trip.
  • function: Function name and JSON arguments for this call.
  • function.name: Function name the model wants to invoke.
  • function.arguments: JSON-encoded argument object. Streamed in fragments, so assemble before parsing.