import { Messages } from "https://deno.land/x/openai@v4.19.1/resources/beta/threads/messages/messages.ts";
class Messages
extends APIResource
import { Messages } from "https://deno.land/x/openai@v4.19.1/resources/beta/threads/messages/messages.ts";
Methods
create(): Core.APIPromise<ThreadMessage>
Create a message.
list(): Core.PagePromise<ThreadMessagesPage, ThreadMessage>
Returns a list of messages for a given thread.
list(threadId: string, options?: Core.RequestOptions): Core.PagePromise<ThreadMessagesPage, ThreadMessage>
retrieve(): Core.APIPromise<ThreadMessage>
threadId: string,
messageId: string,
options?: Core.RequestOptions,
Retrieve a message.
update(): Core.APIPromise<ThreadMessage>
Modifies a message.