One part of multipart message content, following the OpenAI content part format. For user, system, developer, and tool messages, a text part must include non-empty text, and an image part must include image_url with a non-empty url. These content-part checks do not apply to assistant messages.

Hierarchy

  • AIGuardContentPart

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
imageUrl?: AIGuardImageURL

An image referenced by URL in a message content part.

text?: string

The text content, required and non-empty when type is text in a user, system, developer, or tool message.

The type of the content part.

Generated using TypeDoc