interface ConversationItemContent {
    audio?: string;
    id?: string;
    text?: string;
    transcript?: string;
    type?:
        | "text"
        | "item_reference"
        | "input_text"
        | "input_audio";
}

Properties

audio?: string

Base64-encoded audio bytes, used for input_audio content type.

id?: string

ID of a previous conversation item to reference (for item_reference content types in response.create events). These can reference both client and server created items.

text?: string

The text content, used for input_text and text content types.

transcript?: string

The transcript of the audio, used for input_audio content type.

type?:
    | "text"
    | "item_reference"
    | "input_text"
    | "input_audio"

The content type (input_text, input_audio, item_reference, text).