共用方式為


MessagesOperations interface

表示 Messages作的介面。

屬性

create

在指定的線程上建立新訊息。

get

檢索現有消息。

list

取得存在於線程上的訊息清單。

update

修改現有線程上的現有訊息。

屬性詳細資料

create

在指定的線程上建立新訊息。

create: (threadId: string, role: MessageRole, content: MessageInputContent, options?: MessagesCreateMessageOptionalParams) => Promise<ThreadMessage>

屬性值

(threadId: string, role: MessageRole, content: MessageInputContent, options?: MessagesCreateMessageOptionalParams) => Promise<ThreadMessage>

get

檢索現有消息。

get: (threadId: string, messageId: string, options?: MessagesGetMessageOptionalParams) => Promise<ThreadMessage>

屬性值

(threadId: string, messageId: string, options?: MessagesGetMessageOptionalParams) => Promise<ThreadMessage>

list

取得存在於線程上的訊息清單。

list: (threadId: string, options?: MessagesListMessagesOptionalParams) => PagedAsyncIterableIterator<ThreadMessage, ThreadMessage[], PageSettings>

屬性值

(threadId: string, options?: MessagesListMessagesOptionalParams) => PagedAsyncIterableIterator<ThreadMessage, ThreadMessage[], PageSettings>

update

修改現有線程上的現有訊息。

update: (threadId: string, messageId: string, options?: MessagesUpdateMessageOptionalParams) => Promise<ThreadMessage>

屬性值

(threadId: string, messageId: string, options?: MessagesUpdateMessageOptionalParams) => Promise<ThreadMessage>