Skip to content

Variable: ChatToolCallSchema

const ChatToolCallSchema: ZodObject<{ function: ZodObject<{ arguments: ZodString; name: ZodString; }, $strip>; id: ZodString; type: ZodString; }, $strip>

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.