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-empty tool_call_id.

Hierarchy

  • AIGuardMessage

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any

The 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.

toolCallId?: string

The identifier of the tool call this message responds to, present on tool result messages.

toolCalls?: AIGuardToolCall[]

The tool calls emitted by the assistant, present on assistant messages that call tools.

Generated using TypeDoc