MessagesOperations interface
Interfejs reprezentujący operacje Messages.
Właściwości
| create | Tworzy nowy komunikat w określonym wątku. |
| get | Pobiera istniejącą wiadomość. |
| list | Pobiera listę komunikatów, które istnieją w wątku. |
| update | Modyfikuje istniejący komunikat w istniejącym wątku. |
Szczegóły właściwości
create
Tworzy nowy komunikat w określonym wątku.
create: (threadId: string, role: MessageRole, content: MessageInputContent, options?: MessagesCreateMessageOptionalParams) => Promise<ThreadMessage>
Wartość właściwości
(threadId: string, role: MessageRole, content: MessageInputContent, options?: MessagesCreateMessageOptionalParams) => Promise<ThreadMessage>
get
Pobiera istniejącą wiadomość.
get: (threadId: string, messageId: string, options?: MessagesGetMessageOptionalParams) => Promise<ThreadMessage>
Wartość właściwości
(threadId: string, messageId: string, options?: MessagesGetMessageOptionalParams) => Promise<ThreadMessage>
list
Pobiera listę komunikatów, które istnieją w wątku.
list: (threadId: string, options?: MessagesListMessagesOptionalParams) => PagedAsyncIterableIterator<ThreadMessage, ThreadMessage[], PageSettings>
Wartość właściwości
(threadId: string, options?: MessagesListMessagesOptionalParams) => PagedAsyncIterableIterator<ThreadMessage, ThreadMessage[], PageSettings>
update
Modyfikuje istniejący komunikat w istniejącym wątku.
update: (threadId: string, messageId: string, options?: MessagesUpdateMessageOptionalParams) => Promise<ThreadMessage>
Wartość właściwości
(threadId: string, messageId: string, options?: MessagesUpdateMessageOptionalParams) => Promise<ThreadMessage>