Instance Methodmacpaw.openai 0.3.2OpenAI
threadRun(query:)
OpenAIProtocol+Async.swift:253- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func threadRun(query: ThreadRunQuery) async throws -> RunResult
func threadRun(query: ThreadRunQuery) async throws -> RunResult
s6OpenAI0A10AIProtocolPAAE9threadRun5queryAA0E6ResultVAA06ThreadE5QueryV_tYaKF
What are these?44SR0
import OpenAI
protocol OpenAIProtocol
struct ThreadRunQuery
struct RunResult
func assistantCreate(query: AssistantsQuery) async throws -> AssistantResult
func assistantModify(query: AssistantsQuery, assistantId: String) async throws -> AssistantResult
func assistants(after: String? = nil) async throws -> AssistantsResult
func audioCreateSpeech(query: AudioSpeechQuery) async throws -> AudioSpeechResult
func audioTranscriptions(query: AudioTranscriptionQuery) async throws -> AudioTranscriptionResult
func audioTranslations(query: AudioTranslationQuery) async throws -> AudioTranslationResult
func chats(query: ChatQuery) async throws -> ChatResult
func chatsStream(query: ChatQuery) -> AsyncThrowingStream<ChatStreamResult, Error>
func embeddings(query: EmbeddingsQuery) async throws -> EmbeddingsResult
func files(query: FilesQuery) async throws -> FilesResult
func imageEdits(query: ImageEditsQuery) async throws -> ImagesResult
func imageVariations(query: ImageVariationsQuery) async throws -> ImagesResult
func images(query: ImagesQuery) async throws -> ImagesResult
func model(query: ModelQuery) async throws -> ModelResult
func models() async throws -> ModelsResult
func moderations(query: ModerationsQuery) async throws -> ModerationsResult
func runRetrieve(threadId: String, runId: String) async throws -> RunResult
func runRetrieveSteps(threadId: String, runId: String, before: String? = nil) async throws -> RunRetrieveStepsResult
func runSubmitToolOutputs(threadId: String, runId: String, query: RunToolOutputsQuery) async throws -> RunResult
func runs(threadId: String, query: RunsQuery) async throws -> RunResult
func threads(query: ThreadsQuery) async throws -> ThreadsResult
func threadsAddMessage(threadId: String, query: MessageQuery) async throws -> ThreadAddMessageResult
func threadsMessages(threadId: String, before: String? = nil) async throws -> ThreadsMessagesResult