你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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>