Qore OpenAiDataProvider Module Reference 1.3
Loading...
Searching...
No Matches
OpenAiModelDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace OpenAiDataProvider {
29
30public:
32 const ProviderInfo = ...;
33
34
37
38
40 const RequestType = AbstractDataProviderTypeMap."nothing";
41
44
45protected:
47 hash<auto> model;
48
50 const ChildMap = ...;
51
52
53public:
54
56 constructor(*RestClient rest, hash<auto> model) ;
57
58
60 string getName();
61
62
64
69protected:
70 auto doRequestImpl(auto req, *hash<auto> request_options);
71public:
72
73
75
77protected:
78 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
79public:
80
81
83
85protected:
86 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
87public:
88
89
91 *list<hash<DataProviderSummaryInfo>> getChildProviderSummaryInfo();
92
93
95
97protected:
99public:
100
101
103
107protected:
108 *AbstractDataProvider getChildProviderImpl(string name);
109public:
110
111
113protected:
114 hash<DataProviderInfo> getStaticInfoImpl();
115public:
116
117};
118
120class OpenAiModelDataType : public HashDataType {
121
122public:
124 const Fields = ...;
125
126
129
130};
131
134};
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 OpenAiModelDataProvider.qc.dox.h:28
constructor(*RestClient rest, hash< auto > model)
Creates the object from the arguments.
const ResponseType
Response type.
Definition OpenAiModelDataProvider.qc.dox.h:43
hash< auto > model
The model info.
Definition OpenAiModelDataProvider.qc.dox.h:47
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or nothing if the given child is unknown.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const RequestType
Request type.
Definition OpenAiModelDataProvider.qc.dox.h:40
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
const ChildMap
Child data providers.
Definition OpenAiModelDataProvider.qc.dox.h:50
*list< hash< DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
const ProviderSummaryInfo
Provider summary info.
Definition OpenAiModelDataProvider.qc.dox.h:36
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
const ProviderInfo
Provider info.
Definition OpenAiModelDataProvider.qc.dox.h:32
string getName()
Returns the data provider name.
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
The model type.
Definition OpenAiModelDataProvider.qc.dox.h:120
const Fields
fields
Definition OpenAiModelDataProvider.qc.dox.h:124
Qore OpenAiDataProvider module definition.
Definition OpenAiAssistantCreateDataProvider.qc.dox.h:26
const OpenAiModelDataType
Model type constant.
Definition OpenAiModelDataProvider.qc.dox.h:133