ChatMessage schema
| Field | Type and description |
|---|---|
roleRequired | string The role of the message author. Allowed values: |
contentRequired | schema The message content (text or multimodal content parts). Assistant tool-call messages may contain content: null. oneOfstring array of object Array itemsobjectnull |
reasoning_content | string | null The model's reasoning trace when the model produces one; null otherwise. Populated by some reasoning models only — a consumer must not assume it carries content. Reasoning that a model writes inside |
name | string Optional name for the participant. |
tool_calls | array of object Tool calls generated by the assistant. Array itemsobject |
tool_call_id | string ID of the tool call this message responds to. |