Interface: ChatCompletionsMessage
Defined in: src/batteries/llm/openai_chat_completions/types.ts:138
Chat completion message wire object.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
content | | string | ChatCompletionsContentBlock[] | null | The contents of the message. | src/batteries/llm/openai_chat_completions/types.ts:146 |
name? | string | An optional name for the participant. | src/batteries/llm/openai_chat_completions/types.ts:150 |
role | "user" | "assistant" | "tool" | "system" | "developer" | The role of the author of this message. | src/batteries/llm/openai_chat_completions/types.ts:142 |
tool_call_id? | string | Tool call identifier if responding to a tool call. | src/batteries/llm/openai_chat_completions/types.ts:154 |
tool_calls? | ChatCompletionsToolCallWire[] | The tool calls generated by the model. | src/batteries/llm/openai_chat_completions/types.ts:158 |