Qore OpenAiDataProvider Module Reference 1.4
Loading...
Searching...
No Matches
OpenAiModelCreateResponseDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26namespace OpenAiDataProvider {
29
30public:
32 const ProviderInfo = ...;
33
34
37
38
40 const RequestType = OpenAiModelCreateResponseRequestDataType;
41
43 const ResponseType = OpenAiModelCreateResponseResponseDataType;
44
45protected:
47 hash<auto> model;
48
49public:
50
53
54
57
58
60 string getName();
61
62
64
69protected:
70 auto doRequestImpl(auto req, *hash<auto> request_options);
71public:
72
73
75protected:
76 static auto getInput(hash<auto> input);
77public:
78
79
81protected:
82 static auto getContent(hash<auto> content);
83public:
84
85
87protected:
88 static hash<auto> getTool(hash<auto> tool);
89public:
90
91
92protected:
93 static hash<auto> getFilter(hash<auto> filter);
94public:
95
96
98
100protected:
101 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
102public:
103
104
106
108protected:
109 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
110public:
111
112
114protected:
115 hash<DataProviderInfo> getStaticInfoImpl();
116public:
117
118
120 *string getOutputText(list<auto> output);
121
122};
123
124class OpenAiModelInputItemContentDataType : public HashDataType {
125
126public:
127 const Fields = ...;
128
129
131 constructor();
132
133};
134
135const OpenAiModelInputItemContentDataType = new OpenAiModelInputItemContentDataType();
136
137class OpenAiModelInputItemDataType : public HashDataType {
138
139public:
140 const Fields = ...;
141
142
144 constructor();
145
146};
147
148const OpenAiModelInputItemDataType = new OpenAiModelInputItemDataType();
149
150class OpenAiModelInputDataType : public HashDataType {
151
152public:
153 const Fields = ...;
154
155
157 constructor();
158
159};
160
161const OpenAiModelInputDataType = new OpenAiModelInputDataType();
162
163class ReasoningDataType : public HashDataType {
164
165public:
166 const Fields = ...;
167
168
170 constructor();
171
172};
173
174const ReasoningDataType = new ReasoningDataType();
175const ReasoningOrNothingDataType = ReasoningDataType.getOrNothingType();
176
177class OpenAiModelRepsonseTextFormatDataType : public HashDataType {
178
179public:
180 const Fields = ...;
181
182
184 constructor();
185
186};
187
188const OpenAiModelRepsonseTextFormatDataType = new OpenAiModelRepsonseTextFormatDataType();
189
190class OpenAiModelResponseTextDataType : public HashDataType {
191
192public:
193 const Fields = ...;
194
195
197 constructor();
198
199};
200
201const OpenAiModelResponseTextDataType = new OpenAiModelResponseTextDataType();
202const OpenAiModelResponseTextOrNothingDataType = OpenAiModelResponseTextDataType.getOrNothingType();
203
204class OpenAiModelFileSearchToolComparisonFilterDataType : public HashDataType {
205
206public:
207 const Fields = ...;
208
209
211 constructor();
212
213};
214
215const OpenAiModelFileSearchToolComparisonFilterDataType = new OpenAiModelFileSearchToolComparisonFilterDataType();
216
217class OpenAiModelFileSearchToolCompoundFilterDataType : public HashDataType {
218
219public:
220 const Fields = ...;
221
222
224 constructor();
225
226};
227
228// NOTE: the "filters" field is updated in the module init code to be self-referencing
229const OpenAiModelFileSearchToolCompoundFilterDataType = new OpenAiModelFileSearchToolCompoundFilterDataType();
230
231class OpenAiModelFileSearchToolFilterDataType : public HashDataType {
232
233public:
234 const Fields = ...;
235
236
238 constructor();
239
240};
241
242const OpenAiModelFileSearchToolFilterDataType = new OpenAiModelFileSearchToolFilterDataType();
243const OpenAiModelFileSearchToolFilterOrNothingDataType =
244 OpenAiModelFileSearchToolFilterDataType.getOrNothingType();
245
246class OpenAiModelFileSearchToolRankingOptionsDataType : public HashDataType {
247
248public:
249 const Fields = ...;
250
251
253 constructor();
254
255};
256
257const OpenAiModelFileSearchToolRankingOptionsDataType = new OpenAiModelFileSearchToolRankingOptionsDataType();
258const OpenAiModelFileSearchToolRankingOptionsOrNothingDataType =
259 OpenAiModelFileSearchToolRankingOptionsDataType.getOrNothingType();
260
261class OpenAiModelFileSearchToolDataType : public HashDataType {
262
263public:
264 const Fields = ...;
265
266
268 constructor();
269
270};
271
272const OpenAiModelFileSearchToolDataType = new OpenAiModelFileSearchToolDataType();
273
274class OpenAiModelFunctionToolDataType : public HashDataType {
275
276public:
277 const Fields = ...;
278
279
281 constructor();
282
283};
284
285const OpenAiModelFunctionToolDataType = new OpenAiModelFunctionToolDataType();
286
287class OpenAiModelUserLocationDataType : public HashDataType {
288
289public:
290 const Fields = ...;
291
292
294 constructor();
295
296};
297
298const OpenAiModelUserLocationDataType = new OpenAiModelUserLocationDataType();
299const OpenAiModelUserLocationOrNothingDataType = OpenAiModelUserLocationDataType.getOrNothingType();
300
301class OpenAiModelWebSearchToolDataType : public HashDataType {
302
303public:
304 const Fields = ...;
305
306
308 constructor();
309
310};
311
312const OpenAiModelWebSearchToolDataType = new OpenAiModelWebSearchToolDataType();
313
314class OpenAiModelComputerUseToolDataType : public HashDataType {
315
316public:
317 const Fields = ...;
318
319
321 constructor();
322
323};
324
325const OpenAiModelComputerUseToolDataType = new OpenAiModelComputerUseToolDataType();
326
327class OpenAiModelToolDataType : public HashDataType {
328
329public:
330 const Fields = ...;
331
332
334 constructor();
335
336};
337
338const OpenAiModelToolDataType = new OpenAiModelToolDataType();
339
340class OpenAiModelCreateResponseRequestDataType : public HashDataType {
341
342public:
343 const Fields = ...;
344
345
347 constructor();
348
349};
350
351const OpenAiModelCreateResponseRequestDataType = new OpenAiModelCreateResponseRequestDataType();
352
353class OpenAiModelCreateErrorDataType : public HashDataType {
354
355public:
356 const Fields = ...;
357
358
360 constructor();
361
362};
363
364const OpenAiModelCreateErrorDataType = new OpenAiModelCreateErrorDataType();
365const OpenAiModelCreateErrorOrNothingDataType = OpenAiModelCreateErrorDataType.getOrNothingType();
366
367class OpenAiModelCreateIncompleteDetailsDataType : public HashDataType {
368
369public:
370 const Fields = ...;
371
372
374 constructor();
375
376};
377
378const OpenAiModelCreateIncompleteDetailsDataType = new OpenAiModelCreateIncompleteDetailsDataType();
379const OpenAiModelCreateIncompleteDetailsOrNothingDataType =
380 OpenAiModelCreateIncompleteDetailsDataType.getOrNothingType();
381
382class OpenAiModelUsageInputTokensDetailsDataType : public HashDataType {
383
384public:
385 const Fields = ...;
386
387
389 constructor();
390
391};
392
393const OpenAiModelUsageInputTokensDetailsDataType = new OpenAiModelUsageInputTokensDetailsDataType();
394
395class OpenAiModelUsageOutputTokensDetailsDataType : public HashDataType {
396
397public:
398 const Fields = ...;
399
400
402 constructor();
403
404};
405
406const OpenAiModelUsageOutputTokensDetailsDataType = new OpenAiModelUsageOutputTokensDetailsDataType();
407
408class OpenAiModelUsageDataType : public HashDataType {
409
410public:
411 const Fields = ...;
412
413
415 constructor();
416
417};
418
419const OpenAiModelUsageDataType = new OpenAiModelUsageDataType();
420
421class OpenAiModelCreateResponseResponseDataType : public HashDataType {
422
423public:
424 const Fields = ...;
425
426
428 constructor();
429
430};
431
432const OpenAiModelCreateResponseResponseDataType = new OpenAiModelCreateResponseResponseDataType();
433};
The OpenAi data provider common base class.
Definition OpenAiDataProviderCommon.qc.dox.h:28
*RestClient::RestClient rest
The REST client object for API calls.
Definition OpenAiDataProviderCommon.qc.dox.h:54
The OpenAi data provider class.
Definition OpenAiModelCreateResponseDataProvider.qc.dox.h:28
static hash< auto > getTool(hash< auto > tool)
Processes tools in a response request.
static auto getContent(hash< auto > content)
Processes content in a request.
const ProviderInfo
Provider info.
Definition OpenAiModelCreateResponseDataProvider.qc.dox.h:32
static auto getInput(hash< auto > input)
Processes input in a request.
const RequestType
Request type.
Definition OpenAiModelCreateResponseDataProvider.qc.dox.h:40
const ResponseType
Response type.
Definition OpenAiModelCreateResponseDataProvider.qc.dox.h:43
const ProviderSummaryInfo
Provider summary info.
Definition OpenAiModelCreateResponseDataProvider.qc.dox.h:36
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
string getName()
Returns the data provider name.
constructor(*RestClient rest)
Creates the object from the arguments.
constructor(*RestClient rest, hash< auto > model)
Creates the object from the arguments.
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
hash< auto > model
Model info.
Definition OpenAiModelCreateResponseDataProvider.qc.dox.h:47
*string getOutputText(list< auto > output)
Returns output text for the output.
Qore OpenAiDataProvider module definition.
Definition OpenAiAssistantCreateDataProvider.qc.dox.h:26