method Threads.prototype.createAndRunimport { Threads } from "https://deno.land/x/openai@v4.58.1/resources/beta/threads/threads.ts"; createAndRun(body: ThreadCreateAndRunParamsNonStreaming, options?: Core.RequestOptions): APIPromise<RunsAPI.Run>Create a thread and run it in one request. createAndRun(body: ThreadCreateAndRunParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>createAndRun(body: ThreadCreateAndRunParamsBase, options?: Core.RequestOptions): APIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | RunsAPI.Run>Create a thread and run it in one request. Parametersbody: ThreadCreateAndRunParamsNonStreamingoptionaloptions: Core.RequestOptionsReturnsAPIPromise<RunsAPI.Run>Parametersbody: ThreadCreateAndRunParamsStreamingoptionaloptions: Core.RequestOptionsReturnsAPIPromise<Stream<AssistantsAPI.AssistantStreamEvent>>Parametersbody: ThreadCreateAndRunParamsBaseoptionaloptions: Core.RequestOptionsReturnsAPIPromise<Stream<AssistantsAPI.AssistantStreamEvent> | RunsAPI.Run>