Optional additionalA container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.
Optional contentThe content of a message, either a plain string or a list of OpenAI-style content parts.
The role of the message author in the conversation.
Optional toolThe identifier of the tool call this message responds to, present on tool result messages.
Optional toolThe tool calls emitted by the assistant, present on assistant messages that call tools.
Generated using TypeDoc
A message in the conversation. Content is required for user, system, developer, and tool messages, but may be omitted for assistant messages. For those non-assistant roles, a plain content string may be empty, but a multipart content array must contain at least one valid content part. Only assistant messages may contain tool calls, and tool call entries must not be null. Tool messages must include a non-empty
tool_call_id; other message roles must not include a non-emptytool_call_id.