import { Threads } from "https://deno.land/x/openai@v4.28.5/resources/beta/threads/mod.ts";
import { Threads } from "https://deno.land/x/openai@v4.28.5/resources/beta/threads/mod.ts";
Methods
create(body?: ThreadCreateParams, options?: Core.RequestOptions): Core.APIPromise<Thread>
Create a thread.
createAndRun(body: ThreadCreateAndRunParams, options?: Core.RequestOptions): Core.APIPromise<RunsAPI.Run>
Create a thread and run it in one request.
del(threadId: string, options?: Core.RequestOptions): Core.APIPromise<ThreadDeleted>
Delete a thread.
Retrieves a thread.