@orq-ai/node 4.2.7 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/package-lock.json +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +15 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +15 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/funcs/routerImagesEditsCreate.js +18 -0
- package/funcs/routerImagesEditsCreate.js.map +1 -1
- package/funcs/routerImagesVariationsCreate.js +18 -0
- package/funcs/routerImagesVariationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +18 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +4 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +5 -0
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +1 -0
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +193 -44
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +125 -38
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +176 -27
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +104 -17
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +173 -24
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +100 -14
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +187 -38
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +114 -27
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +187 -38
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +115 -29
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/createprompt.d.ts +9 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +176 -27
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +103 -18
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +150 -30
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +93 -22
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +129 -9
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +78 -7
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +129 -9
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +76 -7
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getallprompts.d.ts +4 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +14 -14
- package/models/operations/getoneprompt.d.ts +4 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +4 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +8 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listpromptversions.d.ts +4 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +8 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -0
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +10 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +3 -1
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +10 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +3 -1
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +18 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +4 -0
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updateprompt.d.ts +9 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/funcs/routerAudioTranscriptionsCreate.ts +31 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +31 -0
- package/src/funcs/routerImagesEditsCreate.ts +38 -0
- package/src/funcs/routerImagesVariationsCreate.ts +38 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +22 -0
- package/src/models/operations/createchatcompletion.ts +6 -0
- package/src/models/operations/createcompletion.ts +432 -97
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createembedding.ts +383 -53
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +382 -45
- package/src/models/operations/createimageedit.ts +406 -73
- package/src/models/operations/createimagevariation.ts +428 -78
- package/src/models/operations/createprompt.ts +11 -0
- package/src/models/operations/creatererank.ts +369 -54
- package/src/models/operations/createspeech.ts +333 -61
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +312 -15
- package/src/models/operations/createtranslation.ts +307 -15
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getallprompts.ts +5 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +14 -14
- package/src/models/operations/getoneprompt.ts +5 -0
- package/src/models/operations/getpromptversion.ts +5 -0
- package/src/models/operations/listagents.ts +10 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listpromptversions.ts +5 -0
- package/src/models/operations/retrieveagentrequest.ts +10 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +13 -1
- package/src/models/operations/streamrunagent.ts +13 -1
- package/src/models/operations/updateagent.ts +22 -0
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updateprompt.ts +11 -0
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -339,7 +339,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
|
|
|
339
339
|
}
|
|
340
340
|
/** @internal */
|
|
341
341
|
exports.RequestBodyTools$outboundSchema = z.object({
|
|
342
|
-
id: z.string().default("
|
|
342
|
+
id: z.string().default("01KFVN6ECAKKZWM7C9VJMS4E18"),
|
|
343
343
|
name: z.string(),
|
|
344
344
|
description: z.string().optional(),
|
|
345
345
|
schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -612,7 +612,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
612
612
|
}
|
|
613
613
|
/** @internal */
|
|
614
614
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
615
|
-
_id: z.string().default("
|
|
615
|
+
_id: z.string().default("tool_01KFVN6EC5MYDCAMFJM4VHKMPY"),
|
|
616
616
|
path: z.string(),
|
|
617
617
|
key: z.string(),
|
|
618
618
|
display_name: z.string().optional(),
|
|
@@ -667,7 +667,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
667
667
|
}
|
|
668
668
|
/** @internal */
|
|
669
669
|
exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
|
|
670
|
-
id: z.string().default("
|
|
670
|
+
id: z.string().default("01KFVN6EC497801YG8BYE696ZD"),
|
|
671
671
|
name: z.string(),
|
|
672
672
|
description: z.string().optional(),
|
|
673
673
|
schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -695,7 +695,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
695
695
|
}
|
|
696
696
|
/** @internal */
|
|
697
697
|
exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
698
|
-
_id: z.string().default("
|
|
698
|
+
_id: z.string().default("tool_01KFVN6EC35QXNK3VNN8ZREJB2"),
|
|
699
699
|
path: z.string(),
|
|
700
700
|
key: z.string(),
|
|
701
701
|
display_name: z.string().optional(),
|
|
@@ -784,7 +784,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
784
784
|
}
|
|
785
785
|
/** @internal */
|
|
786
786
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
787
|
-
_id: z.string().default("
|
|
787
|
+
_id: z.string().default("tool_01KFVN6EC13XW1297BB2G6QVF5"),
|
|
788
788
|
path: z.string(),
|
|
789
789
|
key: z.string(),
|
|
790
790
|
display_name: z.string().optional(),
|
|
@@ -836,7 +836,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
836
836
|
}
|
|
837
837
|
/** @internal */
|
|
838
838
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
839
|
-
_id: z.string().default("
|
|
839
|
+
_id: z.string().default("tool_01KFVN6EC06J7W0KTB5SH0JBPX"),
|
|
840
840
|
path: z.string(),
|
|
841
841
|
key: z.string(),
|
|
842
842
|
display_name: z.string().optional(),
|
|
@@ -892,7 +892,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
892
892
|
}
|
|
893
893
|
/** @internal */
|
|
894
894
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
895
|
-
_id: z.string().default("
|
|
895
|
+
_id: z.string().default("tool_01KFVN6EBQNA6CKEPNV8334XCJ"),
|
|
896
896
|
path: z.string(),
|
|
897
897
|
key: z.string(),
|
|
898
898
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -99,6 +99,13 @@ async function $do(
|
|
|
99
99
|
if (payload.enable_logging !== undefined) {
|
|
100
100
|
appendForm(body, "enable_logging", payload.enable_logging);
|
|
101
101
|
}
|
|
102
|
+
if (payload.fallbacks !== undefined) {
|
|
103
|
+
appendForm(
|
|
104
|
+
body,
|
|
105
|
+
"fallbacks",
|
|
106
|
+
encodeJSON("fallbacks", payload.fallbacks, { explode: true }),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
102
109
|
if (payload.file !== undefined) {
|
|
103
110
|
if (isBlobLike(payload.file)) {
|
|
104
111
|
appendForm(body, "file", payload.file);
|
|
@@ -122,6 +129,16 @@ async function $do(
|
|
|
122
129
|
if (payload.language !== undefined) {
|
|
123
130
|
appendForm(body, "language", payload.language);
|
|
124
131
|
}
|
|
132
|
+
if (payload.load_balancer !== undefined) {
|
|
133
|
+
appendForm(
|
|
134
|
+
body,
|
|
135
|
+
"load_balancer",
|
|
136
|
+
encodeJSON("load_balancer", payload.load_balancer, { explode: true }),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
if (payload.name !== undefined) {
|
|
140
|
+
appendForm(body, "name", payload.name);
|
|
141
|
+
}
|
|
125
142
|
if (payload.num_speakers !== undefined) {
|
|
126
143
|
appendForm(body, "num_speakers", payload.num_speakers);
|
|
127
144
|
}
|
|
@@ -134,12 +151,26 @@ async function $do(
|
|
|
134
151
|
if (payload.response_format !== undefined) {
|
|
135
152
|
appendForm(body, "response_format", payload.response_format);
|
|
136
153
|
}
|
|
154
|
+
if (payload.retry !== undefined) {
|
|
155
|
+
appendForm(
|
|
156
|
+
body,
|
|
157
|
+
"retry",
|
|
158
|
+
encodeJSON("retry", payload.retry, { explode: true }),
|
|
159
|
+
);
|
|
160
|
+
}
|
|
137
161
|
if (payload.tag_audio_events !== undefined) {
|
|
138
162
|
appendForm(body, "tag_audio_events", payload.tag_audio_events);
|
|
139
163
|
}
|
|
140
164
|
if (payload.temperature !== undefined) {
|
|
141
165
|
appendForm(body, "temperature", payload.temperature);
|
|
142
166
|
}
|
|
167
|
+
if (payload.timeout !== undefined) {
|
|
168
|
+
appendForm(
|
|
169
|
+
body,
|
|
170
|
+
"timeout",
|
|
171
|
+
encodeJSON("timeout", payload.timeout, { explode: true }),
|
|
172
|
+
);
|
|
173
|
+
}
|
|
143
174
|
if (payload.timestamp_granularities !== undefined) {
|
|
144
175
|
appendForm(
|
|
145
176
|
body,
|
|
@@ -99,6 +99,13 @@ async function $do(
|
|
|
99
99
|
if (payload.enable_logging !== undefined) {
|
|
100
100
|
appendForm(body, "enable_logging", payload.enable_logging);
|
|
101
101
|
}
|
|
102
|
+
if (payload.fallbacks !== undefined) {
|
|
103
|
+
appendForm(
|
|
104
|
+
body,
|
|
105
|
+
"fallbacks",
|
|
106
|
+
encodeJSON("fallbacks", payload.fallbacks, { explode: true }),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
102
109
|
if (payload.file !== undefined) {
|
|
103
110
|
if (isBlobLike(payload.file)) {
|
|
104
111
|
appendForm(body, "file", payload.file);
|
|
@@ -119,6 +126,16 @@ async function $do(
|
|
|
119
126
|
);
|
|
120
127
|
}
|
|
121
128
|
}
|
|
129
|
+
if (payload.load_balancer !== undefined) {
|
|
130
|
+
appendForm(
|
|
131
|
+
body,
|
|
132
|
+
"load_balancer",
|
|
133
|
+
encodeJSON("load_balancer", payload.load_balancer, { explode: true }),
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
if (payload.name !== undefined) {
|
|
137
|
+
appendForm(body, "name", payload.name);
|
|
138
|
+
}
|
|
122
139
|
if (payload.num_speakers !== undefined) {
|
|
123
140
|
appendForm(body, "num_speakers", payload.num_speakers);
|
|
124
141
|
}
|
|
@@ -131,12 +148,26 @@ async function $do(
|
|
|
131
148
|
if (payload.response_format !== undefined) {
|
|
132
149
|
appendForm(body, "response_format", payload.response_format);
|
|
133
150
|
}
|
|
151
|
+
if (payload.retry !== undefined) {
|
|
152
|
+
appendForm(
|
|
153
|
+
body,
|
|
154
|
+
"retry",
|
|
155
|
+
encodeJSON("retry", payload.retry, { explode: true }),
|
|
156
|
+
);
|
|
157
|
+
}
|
|
134
158
|
if (payload.tag_audio_events !== undefined) {
|
|
135
159
|
appendForm(body, "tag_audio_events", payload.tag_audio_events);
|
|
136
160
|
}
|
|
137
161
|
if (payload.temperature !== undefined) {
|
|
138
162
|
appendForm(body, "temperature", payload.temperature);
|
|
139
163
|
}
|
|
164
|
+
if (payload.timeout !== undefined) {
|
|
165
|
+
appendForm(
|
|
166
|
+
body,
|
|
167
|
+
"timeout",
|
|
168
|
+
encodeJSON("timeout", payload.timeout, { explode: true }),
|
|
169
|
+
);
|
|
170
|
+
}
|
|
140
171
|
if (payload.timestamps_granularity !== undefined) {
|
|
141
172
|
appendForm(body, "timestamps_granularity", payload.timestamps_granularity);
|
|
142
173
|
}
|
|
@@ -88,12 +88,36 @@ async function $do(
|
|
|
88
88
|
|
|
89
89
|
appendForm(body, "model", payload.model);
|
|
90
90
|
appendForm(body, "prompt", payload.prompt);
|
|
91
|
+
if (payload.cache !== undefined) {
|
|
92
|
+
appendForm(
|
|
93
|
+
body,
|
|
94
|
+
"cache",
|
|
95
|
+
encodeJSON("cache", payload.cache, { explode: true }),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
if (payload.fallbacks !== undefined) {
|
|
99
|
+
appendForm(
|
|
100
|
+
body,
|
|
101
|
+
"fallbacks",
|
|
102
|
+
encodeJSON("fallbacks", payload.fallbacks, { explode: true }),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
91
105
|
if (payload.image !== undefined) {
|
|
92
106
|
appendForm(body, "image", payload.image);
|
|
93
107
|
}
|
|
108
|
+
if (payload.load_balancer !== undefined) {
|
|
109
|
+
appendForm(
|
|
110
|
+
body,
|
|
111
|
+
"load_balancer",
|
|
112
|
+
encodeJSON("load_balancer", payload.load_balancer, { explode: true }),
|
|
113
|
+
);
|
|
114
|
+
}
|
|
94
115
|
if (payload.n !== undefined) {
|
|
95
116
|
appendForm(body, "n", payload.n);
|
|
96
117
|
}
|
|
118
|
+
if (payload.name !== undefined) {
|
|
119
|
+
appendForm(body, "name", payload.name);
|
|
120
|
+
}
|
|
97
121
|
if (payload.orq !== undefined) {
|
|
98
122
|
appendForm(body, "orq", encodeJSON("orq", payload.orq, { explode: true }));
|
|
99
123
|
}
|
|
@@ -103,9 +127,23 @@ async function $do(
|
|
|
103
127
|
if (payload.response_format !== undefined) {
|
|
104
128
|
appendForm(body, "response_format", payload.response_format);
|
|
105
129
|
}
|
|
130
|
+
if (payload.retry !== undefined) {
|
|
131
|
+
appendForm(
|
|
132
|
+
body,
|
|
133
|
+
"retry",
|
|
134
|
+
encodeJSON("retry", payload.retry, { explode: true }),
|
|
135
|
+
);
|
|
136
|
+
}
|
|
106
137
|
if (payload.size !== undefined) {
|
|
107
138
|
appendForm(body, "size", payload.size);
|
|
108
139
|
}
|
|
140
|
+
if (payload.timeout !== undefined) {
|
|
141
|
+
appendForm(
|
|
142
|
+
body,
|
|
143
|
+
"timeout",
|
|
144
|
+
encodeJSON("timeout", payload.timeout, { explode: true }),
|
|
145
|
+
);
|
|
146
|
+
}
|
|
109
147
|
if (payload.user !== undefined) {
|
|
110
148
|
appendForm(body, "user", payload.user);
|
|
111
149
|
}
|
|
@@ -87,21 +87,59 @@ async function $do(
|
|
|
87
87
|
const body = new FormData();
|
|
88
88
|
|
|
89
89
|
appendForm(body, "model", payload.model);
|
|
90
|
+
if (payload.cache !== undefined) {
|
|
91
|
+
appendForm(
|
|
92
|
+
body,
|
|
93
|
+
"cache",
|
|
94
|
+
encodeJSON("cache", payload.cache, { explode: true }),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
if (payload.fallbacks !== undefined) {
|
|
98
|
+
appendForm(
|
|
99
|
+
body,
|
|
100
|
+
"fallbacks",
|
|
101
|
+
encodeJSON("fallbacks", payload.fallbacks, { explode: true }),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
90
104
|
if (payload.image !== undefined) {
|
|
91
105
|
appendForm(body, "image", payload.image);
|
|
92
106
|
}
|
|
107
|
+
if (payload.load_balancer !== undefined) {
|
|
108
|
+
appendForm(
|
|
109
|
+
body,
|
|
110
|
+
"load_balancer",
|
|
111
|
+
encodeJSON("load_balancer", payload.load_balancer, { explode: true }),
|
|
112
|
+
);
|
|
113
|
+
}
|
|
93
114
|
if (payload.n !== undefined) {
|
|
94
115
|
appendForm(body, "n", payload.n);
|
|
95
116
|
}
|
|
117
|
+
if (payload.name !== undefined) {
|
|
118
|
+
appendForm(body, "name", payload.name);
|
|
119
|
+
}
|
|
96
120
|
if (payload.orq !== undefined) {
|
|
97
121
|
appendForm(body, "orq", encodeJSON("orq", payload.orq, { explode: true }));
|
|
98
122
|
}
|
|
99
123
|
if (payload.response_format !== undefined) {
|
|
100
124
|
appendForm(body, "response_format", payload.response_format);
|
|
101
125
|
}
|
|
126
|
+
if (payload.retry !== undefined) {
|
|
127
|
+
appendForm(
|
|
128
|
+
body,
|
|
129
|
+
"retry",
|
|
130
|
+
encodeJSON("retry", payload.retry, { explode: true }),
|
|
131
|
+
);
|
|
132
|
+
}
|
|
102
133
|
if (payload.size !== undefined) {
|
|
103
134
|
appendForm(body, "size", payload.size);
|
|
104
135
|
}
|
|
136
|
+
if (payload.timeout !== undefined) {
|
|
137
|
+
appendForm(
|
|
138
|
+
body,
|
|
139
|
+
"timeout",
|
|
140
|
+
encodeJSON("timeout", payload.timeout, { explode: true }),
|
|
141
|
+
);
|
|
142
|
+
}
|
|
105
143
|
if (payload.user !== undefined) {
|
|
106
144
|
appendForm(body, "user", payload.user);
|
|
107
145
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.2.
|
|
71
|
+
sdkVersion: "4.2.9",
|
|
72
72
|
genVersion: "2.799.0",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.2.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.2.9 2.799.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -107,7 +107,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
|
|
|
107
107
|
z.ZodTypeDef,
|
|
108
108
|
unknown
|
|
109
109
|
> = z.object({
|
|
110
|
-
_id: z.string().default("
|
|
110
|
+
_id: z.string().default("conv_01kfvn6dznm1sfafeky9ayzrf6"),
|
|
111
111
|
kind: ConversationResponseKind$inboundSchema,
|
|
112
112
|
displayName: z.string(),
|
|
113
113
|
createdAt: z.number(),
|
|
@@ -122,7 +122,7 @@ export const ConversationWithMessagesResponse$inboundSchema: z.ZodType<
|
|
|
122
122
|
z.ZodTypeDef,
|
|
123
123
|
unknown
|
|
124
124
|
> = z.object({
|
|
125
|
-
_id: z.string().default("
|
|
125
|
+
_id: z.string().default("conv_01kfvn6dzv13qg5cr0apfcwske"),
|
|
126
126
|
kind: ConversationWithMessagesResponseKind$inboundSchema,
|
|
127
127
|
displayName: z.string(),
|
|
128
128
|
createdAt: z.number(),
|
|
@@ -76,7 +76,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
76
76
|
z.ZodTypeDef,
|
|
77
77
|
unknown
|
|
78
78
|
> = z.object({
|
|
79
|
-
_id: z.string().default("
|
|
79
|
+
_id: z.string().default("reasoning_01kfvn6dnpjbxfc5kefq2qdxpf"),
|
|
80
80
|
metadata: z.record(z.any()).optional(),
|
|
81
81
|
kind: PartKind$inboundSchema,
|
|
82
82
|
reasoning: z.string(),
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kfvn6dn63mj76wvfvx4qvm3x"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -316,6 +316,10 @@ export type Timeout = {
|
|
|
316
316
|
* Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
|
|
317
317
|
*/
|
|
318
318
|
export type ParametersT = {
|
|
319
|
+
/**
|
|
320
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
321
|
+
*/
|
|
322
|
+
name?: string | undefined;
|
|
319
323
|
/**
|
|
320
324
|
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
321
325
|
*/
|
|
@@ -808,6 +812,10 @@ export type FallbackModelConfigurationTimeout = {
|
|
|
808
812
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
809
813
|
*/
|
|
810
814
|
export type FallbackModelConfigurationParameters = {
|
|
815
|
+
/**
|
|
816
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
817
|
+
*/
|
|
818
|
+
name?: string | undefined;
|
|
811
819
|
/**
|
|
812
820
|
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
813
821
|
*/
|
|
@@ -2103,6 +2111,10 @@ export type CreateAgentRequestTimeout = {
|
|
|
2103
2111
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
2104
2112
|
*/
|
|
2105
2113
|
export type CreateAgentRequestParameters = {
|
|
2114
|
+
/**
|
|
2115
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2116
|
+
*/
|
|
2117
|
+
name?: string | undefined;
|
|
2106
2118
|
/**
|
|
2107
2119
|
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2108
2120
|
*/
|
|
@@ -2587,6 +2599,10 @@ export type CreateAgentRequestFallbackModelConfigurationTimeout = {
|
|
|
2587
2599
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
2588
2600
|
*/
|
|
2589
2601
|
export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
2602
|
+
/**
|
|
2603
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
2604
|
+
*/
|
|
2605
|
+
name?: string | undefined;
|
|
2590
2606
|
/**
|
|
2591
2607
|
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
2592
2608
|
*/
|
|
@@ -3347,6 +3363,7 @@ export function timeoutToJSON(timeout: Timeout): string {
|
|
|
3347
3363
|
|
|
3348
3364
|
/** @internal */
|
|
3349
3365
|
export type ParametersT$Outbound = {
|
|
3366
|
+
name?: string | undefined;
|
|
3350
3367
|
audio?: ModelConfigurationAudio$Outbound | null | undefined;
|
|
3351
3368
|
frequency_penalty?: number | null | undefined;
|
|
3352
3369
|
max_tokens?: number | null | undefined;
|
|
@@ -3389,6 +3406,7 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
3389
3406
|
z.ZodTypeDef,
|
|
3390
3407
|
ParametersT
|
|
3391
3408
|
> = z.object({
|
|
3409
|
+
name: z.string().optional(),
|
|
3392
3410
|
audio: z.nullable(z.lazy(() => ModelConfigurationAudio$outboundSchema))
|
|
3393
3411
|
.optional(),
|
|
3394
3412
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
@@ -4119,6 +4137,7 @@ export function fallbackModelConfigurationTimeoutToJSON(
|
|
|
4119
4137
|
|
|
4120
4138
|
/** @internal */
|
|
4121
4139
|
export type FallbackModelConfigurationParameters$Outbound = {
|
|
4140
|
+
name?: string | undefined;
|
|
4122
4141
|
audio?: FallbackModelConfigurationAudio$Outbound | null | undefined;
|
|
4123
4142
|
frequency_penalty?: number | null | undefined;
|
|
4124
4143
|
max_tokens?: number | null | undefined;
|
|
@@ -4164,6 +4183,7 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
4164
4183
|
z.ZodTypeDef,
|
|
4165
4184
|
FallbackModelConfigurationParameters
|
|
4166
4185
|
> = z.object({
|
|
4186
|
+
name: z.string().optional(),
|
|
4167
4187
|
audio: z.nullable(
|
|
4168
4188
|
z.lazy(() => FallbackModelConfigurationAudio$outboundSchema),
|
|
4169
4189
|
).optional(),
|
|
@@ -5921,6 +5941,7 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
5921
5941
|
z.ZodTypeDef,
|
|
5922
5942
|
unknown
|
|
5923
5943
|
> = z.object({
|
|
5944
|
+
name: z.string().optional(),
|
|
5924
5945
|
audio: z.nullable(z.lazy(() => CreateAgentRequestAudio$inboundSchema))
|
|
5925
5946
|
.optional(),
|
|
5926
5947
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
@@ -6657,6 +6678,7 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6657
6678
|
z.ZodTypeDef,
|
|
6658
6679
|
unknown
|
|
6659
6680
|
> = z.object({
|
|
6681
|
+
name: z.string().optional(),
|
|
6660
6682
|
audio: z.nullable(
|
|
6661
6683
|
z.lazy(() =>
|
|
6662
6684
|
CreateAgentRequestFallbackModelConfigurationAudio$inboundSchema
|
|
@@ -1413,6 +1413,10 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1413
1413
|
* Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can have a maximum length of 64 characters and values can have a maximum length of 512 characters.
|
|
1414
1414
|
*/
|
|
1415
1415
|
metadata?: { [k: string]: string } | undefined;
|
|
1416
|
+
/**
|
|
1417
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
1418
|
+
*/
|
|
1419
|
+
name?: string | undefined;
|
|
1416
1420
|
/**
|
|
1417
1421
|
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
1418
1422
|
*/
|
|
@@ -5265,6 +5269,7 @@ export type CreateChatCompletionRequestBody$Outbound = {
|
|
|
5265
5269
|
>;
|
|
5266
5270
|
model: string;
|
|
5267
5271
|
metadata?: { [k: string]: string } | undefined;
|
|
5272
|
+
name?: string | undefined;
|
|
5268
5273
|
audio?: CreateChatCompletionAudio$Outbound | null | undefined;
|
|
5269
5274
|
frequency_penalty?: number | null | undefined;
|
|
5270
5275
|
max_tokens?: number | null | undefined;
|
|
@@ -5326,6 +5331,7 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
|
|
|
5326
5331
|
),
|
|
5327
5332
|
model: z.string(),
|
|
5328
5333
|
metadata: z.record(z.string()).optional(),
|
|
5334
|
+
name: z.string().optional(),
|
|
5329
5335
|
audio: z.nullable(z.lazy(() => CreateChatCompletionAudio$outboundSchema))
|
|
5330
5336
|
.optional(),
|
|
5331
5337
|
frequencyPenalty: z.nullable(z.number()).optional(),
|