Skip to content

@ralphschuler.ai function caller.index.<internal>.OpenAI.Beta.Threads.Messages.ThreadMessage

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: ThreadMessage

Threads.Messages.ThreadMessage

Represents a message within a thread.

Table of contents

Properties

Properties

assistant_id

assistant_id: null | string

If applicable, the ID of the assistant that authored this message.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:138


content

content: (MessageContentImageFile | MessageContentText)[]

The content of the message in array of text and/or images.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:142


created_at

created_at: number

The Unix timestamp (in seconds) for when the message was created.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:146


file_ids

file_ids: string[]

A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files. A maximum of 10 files can be attached to a message.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:152


id

id: string

The identifier, which can be referenced in API endpoints.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:132


metadata

metadata: unknown

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:159


object

object: "thread.message"

The object type, which is always thread.message.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:163


role

role: "assistant" | "user"

The entity that produced the message. One of user or assistant.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:167


run_id

run_id: null | string

If applicable, the ID of the run associated with the authoring of this message.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:173


thread_id

thread_id: string

The thread ID that this message belongs to.

Defined in

node_modules/openai/resources/beta/threads/messages/messages.d.ts:178

Typescript Libraries

Modules

Namespaces

Clone this wiki locally