interface Message
implements HasMetadata
import { type Message } from "https://deno.land/x/openai_deno@v0.9.8/src/types/messages.ts";
Properties
The thread ID that this message belongs to.
content: ({ type: "imageFile"; fileID: string; } | { type: "text"; value: string; annotations: ({ type: "fileCitation"; text: string; fileID: string; quote: string; startIndex: number; endIndex: number; } | { type: "filePath"; text: string; fileID: string; startIndex: number; endIndex: number; })[]; })[]
The content of the message in array of text and/or images.
If applicable, the ID of the assistant that authored this message.
If applicable, the ID of the run associated with the authoring of this message.
A list of file IDs that the assistant should use.
Useful for tools like retrieval
and codeInterpreter
that can access files.
A maximum of 10 files can be attached to a message.