import { Messages } from "https://deno.land/x/openai@v4.28.4/resources/beta/threads/mod.ts";
import { Messages } from "https://deno.land/x/openai@v4.28.4/resources/beta/threads/mod.ts";
Methods
create(): Core.APIPromise<ThreadMessage>
threadId: string,
body: MessageCreateParams,
options?: Core.RequestOptions,
Create a message.
list(): Core.PagePromise<ThreadMessagesPage, ThreadMessage>
threadId: string,
query?: MessageListParams,
options?: Core.RequestOptions,
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>
threadId: string,
messageId: string,
body: MessageUpdateParams,
options?: Core.RequestOptions,
Modifies a message.