OpenAIMessage
Defined in: frontend/dist/types/adapters/openai.d.ts:59
OpenAI chat message structure.
Represents a single message in a conversation with role-based content. Supports text, multimodal content, and tool-related messages.
- OpenAIMessageContent
- OpenAIRequest
Properties
Section titled “Properties”content
Section titled “content”content:
OpenAIMessageContent
Defined in: frontend/dist/types/adapters/openai.d.ts:63
Message content - can be text string or array of content blocks for multimodal
optionalname:string
Defined in: frontend/dist/types/adapters/openai.d.ts:65
Optional name for the message author (useful for multi-user or tool messages)
role:
"user"|"assistant"|"system"|"tool"
Defined in: frontend/dist/types/adapters/openai.d.ts:61
Message role: system (instructions), user (input), assistant (AI response), or tool (function results)
tool_call_id?
Section titled “tool_call_id?”
optionaltool_call_id:string
Defined in: frontend/dist/types/adapters/openai.d.ts:67
Tool call ID when role is ‘tool’ - links tool results to the original tool call