Skip to content
1 min read · 131 words

Interface: ChatCompletionsResponseMessage ​

Defined in: src/batteries/llm/openai_chat_completions/types.ts:300

A message response in non-streaming chat completions.

Properties ​

PropertyTypeDescriptionDefined in
content?string | nullText contents of the response.src/batteries/llm/openai_chat_completions/types.ts:308
reasoning?string | nullNon-spec, provider-specific reasoning channel. Emitted by Ollama's /v1 and current vLLM (which renamed reasoning_content → reasoning); see OpenAIChatCompletionsAdapterOptions.reasoningFieldPrecedence.src/batteries/llm/openai_chat_completions/types.ts:317
reasoning_content?string | nullDe-facto field for model reasoning output.src/batteries/llm/openai_chat_completions/types.ts:312
role?"assistant"Role of the message author.src/batteries/llm/openai_chat_completions/types.ts:304
tool_calls?ChatCompletionsToolCallWire[]The tool calls returned by the model.src/batteries/llm/openai_chat_completions/types.ts:321