Unreal OpenAI API 1.0.0
Loading...
Searching...
No Matches
Delegates.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Provider/Types/AllTypesHeader.h"
7
8// ============================ C++ delegates ============================
9// common
10DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRequestCompleted, const FString& /* URL */, const FString& /* Response content */);
11DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRequestProgresses, const FString& /* URL */, const FString& /* Response content */);
12DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRequestError, const FString& /* URL */, const FString& /* Response content */);
13// models
14DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListModelsCompleted, const FListModelsResponse&, const FOpenAIResponseMetadata&);
15DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveModelCompleted, const FRetrieveModelResponse&, const FOpenAIResponseMetadata&);
16DECLARE_MULTICAST_DELEGATE_TwoParams(
17 FOnDeleteFineTunedModelCompleted, const FDeleteFineTunedModelResponse&, const FOpenAIResponseMetadata&);
18// chat
19DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateCompletionCompleted, const FCompletionResponse&, const FOpenAIResponseMetadata&);
20DECLARE_MULTICAST_DELEGATE_TwoParams(
21 FOnCreateCompletionStreamCompleted, const TArray<FCompletionStreamResponse>&, const FOpenAIResponseMetadata&);
22using FOnCreateCompletionStreamProgresses = FOnCreateCompletionStreamCompleted;
23DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateChatCompletionCompleted, const FChatCompletionResponse&, const FOpenAIResponseMetadata&);
24DECLARE_MULTICAST_DELEGATE_TwoParams(
25 FOnCreateChatCompletionStreamCompleted, const TArray<FChatCompletionStreamResponse>&, const FOpenAIResponseMetadata&);
26using FOnCreateChatCompletionStreamProgresses = FOnCreateChatCompletionStreamCompleted;
27// images
28DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateImageCompleted, const FImageResponse&, const FOpenAIResponseMetadata&);
29DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateImageEditCompleted, const FImageEditResponse&, const FOpenAIResponseMetadata&);
30DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateImageVariationCompleted, const FImageVariationResponse&, const FOpenAIResponseMetadata&);
31// embeddings
32DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateEmbeddingsCompleted, const FEmbeddingsResponse&, const FOpenAIResponseMetadata&);
33// audio + speech
34DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateSpeechCompleted, const FSpeechResponse&, const FOpenAIResponseMetadata&);
35DECLARE_MULTICAST_DELEGATE_TwoParams(
36 FOnCreateAudioTranscriptionCompleted, const FAudioTranscriptionResponse&, const FOpenAIResponseMetadata&);
37DECLARE_MULTICAST_DELEGATE_TwoParams(
38 FOnCreateAudioTranscriptionVerboseCompleted, const FAudioTranscriptionVerboseResponse&, const FOpenAIResponseMetadata&);
39DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateAudioTranslationCompleted, const FAudioTranslationResponse&, const FOpenAIResponseMetadata&);
40DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateVoiceCompleted, const FCreateVoiceResponse&, const FOpenAIResponseMetadata&);
41// files
42DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListFilesCompleted, const FListFilesResponse&, const FOpenAIResponseMetadata&);
43DECLARE_MULTICAST_DELEGATE_TwoParams(FOnUploadFileCompleted, const FUploadFileResponse&, const FOpenAIResponseMetadata&);
44DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteFileCompleted, const FDeleteFileResponse&, const FOpenAIResponseMetadata&);
45DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveFileCompleted, const FRetrieveFileResponse&, const FOpenAIResponseMetadata&);
46DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveFileContentCompleted, const FRetrieveFileContentResponse&, const FOpenAIResponseMetadata&);
47// fine tunes
48DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateFineTuningJobCompleted, const FFineTuningJobObjectResponse&, const FOpenAIResponseMetadata&);
49DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListFineTuningJobsCompleted, const FListFineTuningJobsResponse&, const FOpenAIResponseMetadata&);
50DECLARE_MULTICAST_DELEGATE_TwoParams(
51 FOnListFineTuningEventsCompleted, const FListFineTuningEventsResponse&, const FOpenAIResponseMetadata&);
52DECLARE_MULTICAST_DELEGATE_TwoParams(
53 FOnListFineTuningCheckpointsCompleted, const FListFineTuningCheckpointsResponse&, const FOpenAIResponseMetadata&);
54DECLARE_MULTICAST_DELEGATE_TwoParams(
55 FOnRetrieveFineTuningJobCompleted, const FFineTuningJobObjectResponse&, const FOpenAIResponseMetadata&);
56DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCancelFineTuningJobCompleted, const FFineTuningJobObjectResponse&, const FOpenAIResponseMetadata&);
57DECLARE_MULTICAST_DELEGATE_TwoParams(FOnPauseFineTuningJobCompleted, const FFineTuningJobObjectResponse&, const FOpenAIResponseMetadata&);
58DECLARE_MULTICAST_DELEGATE_TwoParams(FOnResumeFineTuningJobCompleted, const FFineTuningJobObjectResponse&, const FOpenAIResponseMetadata&);
59// moderations
60DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateModerationsCompleted, const FModerationsResponse&, const FOpenAIResponseMetadata&);
61// batches
62DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListBatchCompleted, const FListBatchResponse&, const FOpenAIResponseMetadata&);
63DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateBatchCompleted, const FCreateBatchResponse&, const FOpenAIResponseMetadata&);
64DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveBatchCompleted, const FRetrieveBatchResponse&, const FOpenAIResponseMetadata&);
65DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCancelBatchCompleted, const FCancelBatchResponse&, const FOpenAIResponseMetadata&);
66// uploads
67DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateUploadCompleted, const FUploadObjectResponse&, const FOpenAIResponseMetadata&);
68DECLARE_MULTICAST_DELEGATE_TwoParams(FOnAddUploadPartCompleted, const FUploadPartObjectResponse&, const FOpenAIResponseMetadata&);
69DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCompleteUploadCompleted, const FUploadObjectResponse&, const FOpenAIResponseMetadata&);
70DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCancelUploadCompleted, const FUploadObjectResponse&, const FOpenAIResponseMetadata&);
71// assistants
72DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateAssistantCompleted, const FAssistantObjectResponse&, const FOpenAIResponseMetadata&);
73DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListAssistantsCompleted, const FListAssistantsResponse&, const FOpenAIResponseMetadata&);
74DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveAssistantCompleted, const FAssistantObjectResponse&, const FOpenAIResponseMetadata&);
75DECLARE_MULTICAST_DELEGATE_TwoParams(FOnModifyAssistantCompleted, const FAssistantObjectResponse&, const FOpenAIResponseMetadata&);
76DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteAssistantCompleted, const FDeleteAssistantResponse&, const FOpenAIResponseMetadata&);
77// videos
78DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateVideoCompleted, const FVideoObject&, const FOpenAIResponseMetadata&);
79DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveVideoCompleted, const FVideoObject&, const FOpenAIResponseMetadata&);
80DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListVideosCompleted, const FListVideosResponse&, const FOpenAIResponseMetadata&);
81DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteVideoCompleted, const FDeleteVideoResponse&, const FOpenAIResponseMetadata&);
82DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRemixVideoCompleted, const FVideoObject&, const FOpenAIResponseMetadata&);
83DECLARE_MULTICAST_DELEGATE_TwoParams(
84 FOnDownloadVideoContentCompleted, const FDownloadVideoContentResponse&, const FOpenAIResponseMetadata&);
85// evals
86DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateEvalCompleted, const FCreateEvalResponse&, const FOpenAIResponseMetadata&);
87DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListEvalsCompleted, const FListEvalsResponse&, const FOpenAIResponseMetadata&);
88DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveEvalCompleted, const FRetrieveEvalResponse&, const FOpenAIResponseMetadata&);
89DECLARE_MULTICAST_DELEGATE_TwoParams(FOnUpdateEvalCompleted, const FUpdateEvalResponse&, const FOpenAIResponseMetadata&);
90DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteEvalCompleted, const FDeleteEvalResponse&, const FOpenAIResponseMetadata&);
91// vector stores
92DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateVectorStoreCompleted, const FVectorStore&, const FOpenAIResponseMetadata&);
93DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListVectorStoresCompleted, const FListVectorStoresResponse&, const FOpenAIResponseMetadata&);
94DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveVectorStoreCompleted, const FVectorStore&, const FOpenAIResponseMetadata&);
95DECLARE_MULTICAST_DELEGATE_TwoParams(FOnUpdateVectorStoreCompleted, const FVectorStore&, const FOpenAIResponseMetadata&);
96DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteVectorStoreCompleted, const FVectorStoreDeletedResponse&, const FOpenAIResponseMetadata&);
97DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateVectorStoreFileCompleted, const FVectorStoreFile&, const FOpenAIResponseMetadata&);
98DECLARE_MULTICAST_DELEGATE_TwoParams(
99 FOnListVectorStoreFilesCompleted, const FListVectorStoreFilesResponse&, const FOpenAIResponseMetadata&);
100DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveVectorStoreFileCompleted, const FVectorStoreFile&, const FOpenAIResponseMetadata&);
101DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteVectorStoreFileCompleted, const FVectorStoreDeletedResponse&, const FOpenAIResponseMetadata&);
102DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateVectorStoreFileBatchCompleted, const FVectorStoreFileBatch&, const FOpenAIResponseMetadata&);
103DECLARE_MULTICAST_DELEGATE_TwoParams(
104 FOnRetrieveVectorStoreFileBatchCompleted, const FVectorStoreFileBatch&, const FOpenAIResponseMetadata&);
105DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCancelVectorStoreFileBatchCompleted, const FVectorStoreFileBatch&, const FOpenAIResponseMetadata&);
106DECLARE_MULTICAST_DELEGATE_TwoParams(FOnSearchVectorStoreCompleted, const FVectorStoreSearchResponse&, const FOpenAIResponseMetadata&);
107// chatkit
108DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateChatKitSessionCompleted, const FChatKitSessionResponse&, const FOpenAIResponseMetadata&);
109DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCancelChatKitSessionCompleted, const FChatKitSessionResponse&, const FOpenAIResponseMetadata&);
110DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListChatKitThreadsCompleted, const FListChatKitThreadsResponse&, const FOpenAIResponseMetadata&);
111DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveChatKitThreadCompleted, const FChatKitThread&, const FOpenAIResponseMetadata&);
112DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteChatKitThreadCompleted, const FDeleteChatKitThreadResponse&, const FOpenAIResponseMetadata&);
113DECLARE_MULTICAST_DELEGATE_TwoParams(
114 FOnListChatKitThreadItemsCompleted, const FChatKitThreadItemListResponse&, const FOpenAIResponseMetadata&);
115// skills
116DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateSkillCompleted, const FSkillResponse&, const FOpenAIResponseMetadata&);
117DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListSkillsCompleted, const FListSkillsResponse&, const FOpenAIResponseMetadata&);
118DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveSkillCompleted, const FSkillResponse&, const FOpenAIResponseMetadata&);
119DECLARE_MULTICAST_DELEGATE_TwoParams(FOnUpdateSkillCompleted, const FSkillResponse&, const FOpenAIResponseMetadata&);
120DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteSkillCompleted, const FDeleteSkillResponse&, const FOpenAIResponseMetadata&);
121DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveSkillContentCompleted, const FSkillContentResponse&, const FOpenAIResponseMetadata&);
122DECLARE_MULTICAST_DELEGATE_TwoParams(FOnCreateSkillVersionCompleted, const FSkillVersionResponse&, const FOpenAIResponseMetadata&);
123DECLARE_MULTICAST_DELEGATE_TwoParams(FOnListSkillVersionsCompleted, const FListSkillVersionsResponse&, const FOpenAIResponseMetadata&);
124DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveSkillVersionCompleted, const FSkillVersionResponse&, const FOpenAIResponseMetadata&);
125DECLARE_MULTICAST_DELEGATE_TwoParams(FOnDeleteSkillVersionCompleted, const FDeleteSkillVersionResponse&, const FOpenAIResponseMetadata&);
126DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRetrieveSkillVersionContentCompleted, const FSkillContentResponse&, const FOpenAIResponseMetadata&);
127// realtime
128DECLARE_MULTICAST_DELEGATE_TwoParams(
129 FOnCreateRealtimeClientSecretCompleted, const FRealtimeClientSecretResponse&, const FOpenAIResponseMetadata&);
130DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRealtimeAcceptCallCompleted, const FString&, const FOpenAIResponseMetadata&);
131DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRealtimeHangupCallCompleted, const FString&, const FOpenAIResponseMetadata&);
132DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRealtimeReferCallCompleted, const FString&, const FOpenAIResponseMetadata&);
133DECLARE_MULTICAST_DELEGATE_TwoParams(FOnRealtimeRejectCallCompleted, const FString&, const FOpenAIResponseMetadata&);
Definition AssistantTypes.h:207
Definition AudioTypes.h:223
Definition AudioTypes.h:326
Definition AudioTypes.h:362
Definition BatchTypes.h:407
Definition ChatCompletionTypes.h:116
Definition ChatKitTypes.h:139
Definition ChatKitTypes.h:191
Definition ChatKitTypes.h:404
Definition CompletionTypes.h:252
Definition BatchTypes.h:395
Definition EvalTypes.h:130
Definition AudioTypes.h:380
Definition AssistantTypes.h:189
Definition ChatKitTypes.h:268
Definition EvalTypes.h:209
Definition FileTypes.h:183
Definition ModelTypes.h:209
Definition SkillTypes.h:113
Definition SkillTypes.h:219
Definition VideoTypes.h:277
Definition VideoTypes.h:292
Definition EmbeddingTypes.h:105
Definition FineTuneTypes.h:280
Definition ImageTypes.h:533
Definition ImageTypes.h:491
Definition ImageTypes.h:539
Definition AssistantTypes.h:300
Definition BatchTypes.h:413
Definition ChatKitTypes.h:247
Definition EvalTypes.h:136
Definition FileTypes.h:156
Definition FineTuneTypes.h:543
Definition FineTuneTypes.h:528
Definition FineTuneTypes.h:507
Definition ModelTypes.h:191
Definition SkillTypes.h:198
Definition SkillTypes.h:92
Definition VectorStoreTypes.h:362
Definition VectorStoreTypes.h:341
Definition VideoTypes.h:256
Definition ModerationTypes.h:164
Definition OpenAICommonTypes.h:49
Definition BatchTypes.h:401
Definition EvalTypes.h:157
Definition FileTypes.h:204
Definition FileTypes.h:198
Definition ModelTypes.h:203
Definition SkillTypes.h:237
Definition SkillTypes.h:15
Definition SkillTypes.h:132
Definition AudioTypes.h:371
Definition EvalTypes.h:163
Definition FileTypes.h:177
Definition UploadTypes.h:134
Definition UploadTypes.h:197
Definition VectorStoreTypes.h:267
Definition VectorStoreTypes.h:177
Definition VectorStoreTypes.h:234
Definition VectorStoreTypes.h:102
Definition VectorStoreTypes.h:428
Definition VideoTypes.h:198