import { Messages } from "https://deno.land/x/openai@v4.58.1/resources/beta/threads/messages.ts";
import { Messages } from "https://deno.land/x/openai@v4.58.1/resources/beta/threads/messages.ts";
Methods
create(): Core.APIPromise<Message>
threadId: string,
body: MessageCreateParams,
options?: Core.RequestOptions,
Create a message.
del(): Core.APIPromise<MessageDeleted>
threadId: string,
messageId: string,
options?: Core.RequestOptions,
Deletes a message.
list(): Core.PagePromise<MessagesPage, Message>
threadId: string,
query?: MessageListParams,
options?: Core.RequestOptions,
Returns a list of messages for a given thread.
list(threadId: string, options?: Core.RequestOptions): Core.PagePromise<MessagesPage, Message>
retrieve(): Core.APIPromise<Message>
threadId: string,
messageId: string,
options?: Core.RequestOptions,
Retrieve a message.
update(): Core.APIPromise<Message>
threadId: string,
messageId: string,
body: MessageUpdateParams,
options?: Core.RequestOptions,
Modifies a message.