@orq-ai/node 4.10.0-rc.45 → 4.10.0-rc.47
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/README.md +36 -41
- package/funcs/annotationsCreate.d.ts +3 -0
- package/funcs/annotationsCreate.d.ts.map +1 -1
- package/funcs/annotationsCreate.js +3 -0
- package/funcs/annotationsCreate.js.map +1 -1
- package/funcs/annotationsDelete.d.ts +3 -0
- package/funcs/annotationsDelete.d.ts.map +1 -1
- package/funcs/annotationsDelete.js +3 -0
- package/funcs/annotationsDelete.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +1 -2
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -2
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/modelmetadata.d.ts +38 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +72 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +67 -210
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +84 -201
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.d.ts +10 -10
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +15 -15
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +440 -440
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +479 -484
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +1568 -8
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1137 -12
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +56 -56
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +72 -73
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.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.d.ts +8 -8
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +26 -26
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +5 -5
- package/sdk/annotations.d.ts +6 -0
- package/sdk/annotations.d.ts.map +1 -1
- package/sdk/annotations.js +6 -0
- package/sdk/annotations.js.map +1 -1
- package/sdk/deployments.d.ts +1 -5
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +0 -4
- package/sdk/deployments.js.map +1 -1
- package/src/funcs/annotationsCreate.ts +3 -0
- package/src/funcs/annotationsDelete.ts +3 -0
- package/src/funcs/deploymentsInvoke.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/agentthoughtstreamingevent.ts +43 -55
- package/src/models/components/index.ts +0 -1
- package/src/models/components/modelmetadata.ts +110 -0
- package/src/models/components/reasoningpart.ts +1 -1
- 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/createeval.ts +214 -543
- package/src/models/operations/createtool.ts +24 -28
- package/src/models/operations/deploymentgetconfig.ts +1606 -1156
- package/src/models/operations/deploymentinvoke.ts +3763 -317
- package/src/models/operations/deploymentstream.ts +285 -244
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -1
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.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 +32 -34
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/annotations.ts +6 -0
- package/src/sdk/deployments.ts +1 -8
- package/funcs/deploymentsMetricsCreate.d.ts +0 -19
- package/funcs/deploymentsMetricsCreate.d.ts.map +0 -1
- package/funcs/deploymentsMetricsCreate.js +0 -123
- package/funcs/deploymentsMetricsCreate.js.map +0 -1
- package/models/components/invokedeploymentrequest.d.ts +0 -1573
- package/models/components/invokedeploymentrequest.d.ts.map +0 -1
- package/models/components/invokedeploymentrequest.js +0 -1137
- package/models/components/invokedeploymentrequest.js.map +0 -1
- package/models/operations/deploymentcreatemetric.d.ts +0 -1032
- package/models/operations/deploymentcreatemetric.d.ts.map +0 -1
- package/models/operations/deploymentcreatemetric.js +0 -749
- package/models/operations/deploymentcreatemetric.js.map +0 -1
- package/sdk/metrics.d.ts +0 -14
- package/sdk/metrics.d.ts.map +0 -1
- package/sdk/metrics.js +0 -24
- package/sdk/metrics.js.map +0 -1
- package/src/funcs/deploymentsMetricsCreate.ts +0 -171
- package/src/models/components/invokedeploymentrequest.ts +0 -3457
- package/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/src/sdk/metrics.ts +0 -29
|
@@ -1,1573 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { AudioContentPartSchema, AudioContentPartSchema$Outbound } from "./audiocontentpartschema.js";
|
|
4
|
-
import { FileContentPartSchema, FileContentPartSchema$Outbound } from "./filecontentpartschema.js";
|
|
5
|
-
import { ImageContentPartSchema, ImageContentPartSchema$Outbound } from "./imagecontentpartschema.js";
|
|
6
|
-
import { PublicIdentity, PublicIdentity$Outbound } from "./publicidentity.js";
|
|
7
|
-
import { ReasoningPartSchema, ReasoningPartSchema$Outbound } from "./reasoningpartschema.js";
|
|
8
|
-
import { RedactedReasoningPartSchema, RedactedReasoningPartSchema$Outbound } from "./redactedreasoningpartschema.js";
|
|
9
|
-
import { RefusalPartSchema, RefusalPartSchema$Outbound } from "./refusalpartschema.js";
|
|
10
|
-
import { TextContentPartSchema, TextContentPartSchema$Outbound } from "./textcontentpartschema.js";
|
|
11
|
-
export type InvokeDeploymentRequestContent2 = TextContentPartSchema;
|
|
12
|
-
/**
|
|
13
|
-
* The contents of the tool message.
|
|
14
|
-
*/
|
|
15
|
-
export type InvokeDeploymentRequestPrefixMessages5Content = string | Array<TextContentPartSchema>;
|
|
16
|
-
/**
|
|
17
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
18
|
-
*/
|
|
19
|
-
export declare const InvokeDeploymentRequestPrefixMessagesType: {
|
|
20
|
-
readonly Ephemeral: "ephemeral";
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
24
|
-
*/
|
|
25
|
-
export type InvokeDeploymentRequestPrefixMessagesType = ClosedEnum<typeof InvokeDeploymentRequestPrefixMessagesType>;
|
|
26
|
-
/**
|
|
27
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
*
|
|
31
|
-
* - `5m`: 5 minutes
|
|
32
|
-
* - `1h`: 1 hour
|
|
33
|
-
*
|
|
34
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
35
|
-
*/
|
|
36
|
-
export declare const PrefixMessagesTtl: {
|
|
37
|
-
readonly Fivem: "5m";
|
|
38
|
-
readonly Oneh: "1h";
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
*
|
|
45
|
-
* - `5m`: 5 minutes
|
|
46
|
-
* - `1h`: 1 hour
|
|
47
|
-
*
|
|
48
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
49
|
-
*/
|
|
50
|
-
export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
|
|
51
|
-
export type PrefixMessagesCacheControl = {
|
|
52
|
-
/**
|
|
53
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
54
|
-
*/
|
|
55
|
-
type: InvokeDeploymentRequestPrefixMessagesType;
|
|
56
|
-
/**
|
|
57
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
*
|
|
61
|
-
* - `5m`: 5 minutes
|
|
62
|
-
* - `1h`: 1 hour
|
|
63
|
-
*
|
|
64
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
65
|
-
*/
|
|
66
|
-
ttl?: PrefixMessagesTtl | undefined;
|
|
67
|
-
};
|
|
68
|
-
export type ToolMessage = {
|
|
69
|
-
/**
|
|
70
|
-
* The role of the messages author, in this case tool.
|
|
71
|
-
*/
|
|
72
|
-
role: "tool";
|
|
73
|
-
/**
|
|
74
|
-
* The contents of the tool message.
|
|
75
|
-
*/
|
|
76
|
-
content: string | Array<TextContentPartSchema>;
|
|
77
|
-
/**
|
|
78
|
-
* Tool call that this message is responding to.
|
|
79
|
-
*/
|
|
80
|
-
toolCallId: string | null;
|
|
81
|
-
cacheControl?: PrefixMessagesCacheControl | undefined;
|
|
82
|
-
};
|
|
83
|
-
export type Content2 = (TextContentPartSchema & {
|
|
84
|
-
type: "text";
|
|
85
|
-
}) | RefusalPartSchema | ReasoningPartSchema | RedactedReasoningPartSchema;
|
|
86
|
-
/**
|
|
87
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
88
|
-
*/
|
|
89
|
-
export type InvokeDeploymentRequestPrefixMessages4Content = string | Array<(TextContentPartSchema & {
|
|
90
|
-
type: "text";
|
|
91
|
-
}) | RefusalPartSchema | ReasoningPartSchema | RedactedReasoningPartSchema>;
|
|
92
|
-
/**
|
|
93
|
-
* Data about a previous audio response from the model.
|
|
94
|
-
*/
|
|
95
|
-
export type Audio = {
|
|
96
|
-
/**
|
|
97
|
-
* Unique identifier for a previous audio response from the model.
|
|
98
|
-
*/
|
|
99
|
-
id: string;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
103
|
-
*/
|
|
104
|
-
export declare const PrefixMessagesType: {
|
|
105
|
-
readonly Function: "function";
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
109
|
-
*/
|
|
110
|
-
export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
|
|
111
|
-
export type PrefixMessagesFunction = {
|
|
112
|
-
/**
|
|
113
|
-
* The name of the function to call.
|
|
114
|
-
*/
|
|
115
|
-
name?: string | undefined;
|
|
116
|
-
/**
|
|
117
|
-
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
118
|
-
*/
|
|
119
|
-
arguments?: string | undefined;
|
|
120
|
-
};
|
|
121
|
-
export type ToolCalls = {
|
|
122
|
-
/**
|
|
123
|
-
* The ID of the tool call.
|
|
124
|
-
*/
|
|
125
|
-
id: string;
|
|
126
|
-
/**
|
|
127
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
128
|
-
*/
|
|
129
|
-
type: PrefixMessagesType;
|
|
130
|
-
function: PrefixMessagesFunction;
|
|
131
|
-
/**
|
|
132
|
-
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
133
|
-
*/
|
|
134
|
-
thoughtSignature?: string | undefined;
|
|
135
|
-
};
|
|
136
|
-
export type AssistantMessage = {
|
|
137
|
-
/**
|
|
138
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
139
|
-
*/
|
|
140
|
-
content?: string | Array<(TextContentPartSchema & {
|
|
141
|
-
type: "text";
|
|
142
|
-
}) | RefusalPartSchema | ReasoningPartSchema | RedactedReasoningPartSchema> | null | undefined;
|
|
143
|
-
/**
|
|
144
|
-
* The refusal message by the assistant.
|
|
145
|
-
*/
|
|
146
|
-
refusal?: string | null | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* The role of the messages author, in this case `assistant`.
|
|
149
|
-
*/
|
|
150
|
-
role: "assistant";
|
|
151
|
-
/**
|
|
152
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
153
|
-
*/
|
|
154
|
-
name?: string | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* Data about a previous audio response from the model.
|
|
157
|
-
*/
|
|
158
|
-
audio?: Audio | null | undefined;
|
|
159
|
-
/**
|
|
160
|
-
* The tool calls generated by the model, such as function calls.
|
|
161
|
-
*/
|
|
162
|
-
toolCalls?: Array<ToolCalls> | undefined;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
166
|
-
*/
|
|
167
|
-
export declare const InvokeDeploymentRequest2PrefixMessagesType: {
|
|
168
|
-
readonly Ephemeral: "ephemeral";
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
172
|
-
*/
|
|
173
|
-
export type InvokeDeploymentRequest2PrefixMessagesType = ClosedEnum<typeof InvokeDeploymentRequest2PrefixMessagesType>;
|
|
174
|
-
/**
|
|
175
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
176
|
-
*
|
|
177
|
-
* @remarks
|
|
178
|
-
*
|
|
179
|
-
* - `5m`: 5 minutes
|
|
180
|
-
* - `1h`: 1 hour
|
|
181
|
-
*
|
|
182
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
183
|
-
*/
|
|
184
|
-
export declare const TwoTtl: {
|
|
185
|
-
readonly Fivem: "5m";
|
|
186
|
-
readonly Oneh: "1h";
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
190
|
-
*
|
|
191
|
-
* @remarks
|
|
192
|
-
*
|
|
193
|
-
* - `5m`: 5 minutes
|
|
194
|
-
* - `1h`: 1 hour
|
|
195
|
-
*
|
|
196
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
197
|
-
*/
|
|
198
|
-
export type TwoTtl = ClosedEnum<typeof TwoTtl>;
|
|
199
|
-
export type TwoCacheControl = {
|
|
200
|
-
/**
|
|
201
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
202
|
-
*/
|
|
203
|
-
type: InvokeDeploymentRequest2PrefixMessagesType;
|
|
204
|
-
/**
|
|
205
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
206
|
-
*
|
|
207
|
-
* @remarks
|
|
208
|
-
*
|
|
209
|
-
* - `5m`: 5 minutes
|
|
210
|
-
* - `1h`: 1 hour
|
|
211
|
-
*
|
|
212
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
213
|
-
*/
|
|
214
|
-
ttl?: TwoTtl | undefined;
|
|
215
|
-
};
|
|
216
|
-
export type Four = {
|
|
217
|
-
/**
|
|
218
|
-
* The type of the content part. Always `file`.
|
|
219
|
-
*/
|
|
220
|
-
type: "file";
|
|
221
|
-
cacheControl?: TwoCacheControl | undefined;
|
|
222
|
-
/**
|
|
223
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
224
|
-
*/
|
|
225
|
-
file: FileContentPartSchema;
|
|
226
|
-
};
|
|
227
|
-
export type Two = (TextContentPartSchema & {
|
|
228
|
-
type: "text";
|
|
229
|
-
}) | ImageContentPartSchema | AudioContentPartSchema | Four;
|
|
230
|
-
/**
|
|
231
|
-
* The contents of the user message.
|
|
232
|
-
*/
|
|
233
|
-
export type InvokeDeploymentRequestPrefixMessagesContent = string | Array<(TextContentPartSchema & {
|
|
234
|
-
type: "text";
|
|
235
|
-
}) | ImageContentPartSchema | AudioContentPartSchema | Four>;
|
|
236
|
-
export type UserMessage = {
|
|
237
|
-
/**
|
|
238
|
-
* The role of the messages author, in this case `user`.
|
|
239
|
-
*/
|
|
240
|
-
role: "user";
|
|
241
|
-
/**
|
|
242
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
243
|
-
*/
|
|
244
|
-
name?: string | undefined;
|
|
245
|
-
/**
|
|
246
|
-
* The contents of the user message.
|
|
247
|
-
*/
|
|
248
|
-
content: string | Array<(TextContentPartSchema & {
|
|
249
|
-
type: "text";
|
|
250
|
-
}) | ImageContentPartSchema | AudioContentPartSchema | Four>;
|
|
251
|
-
};
|
|
252
|
-
/**
|
|
253
|
-
* The contents of the developer message.
|
|
254
|
-
*/
|
|
255
|
-
export type PrefixMessagesContent = string | Array<TextContentPartSchema>;
|
|
256
|
-
export type DeveloperMessage = {
|
|
257
|
-
/**
|
|
258
|
-
* The role of the messages author, in this case `developer`.
|
|
259
|
-
*/
|
|
260
|
-
role: "developer";
|
|
261
|
-
/**
|
|
262
|
-
* The contents of the developer message.
|
|
263
|
-
*/
|
|
264
|
-
content: string | Array<TextContentPartSchema>;
|
|
265
|
-
/**
|
|
266
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
267
|
-
*/
|
|
268
|
-
name?: string | undefined;
|
|
269
|
-
};
|
|
270
|
-
/**
|
|
271
|
-
* The contents of the system message.
|
|
272
|
-
*/
|
|
273
|
-
export type Content = string | Array<TextContentPartSchema>;
|
|
274
|
-
/**
|
|
275
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
276
|
-
*/
|
|
277
|
-
export type SystemMessage = {
|
|
278
|
-
/**
|
|
279
|
-
* The role of the messages author, in this case `system`.
|
|
280
|
-
*/
|
|
281
|
-
role: "system";
|
|
282
|
-
/**
|
|
283
|
-
* The contents of the system message.
|
|
284
|
-
*/
|
|
285
|
-
content: string | Array<TextContentPartSchema>;
|
|
286
|
-
/**
|
|
287
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
288
|
-
*/
|
|
289
|
-
name?: string | undefined;
|
|
290
|
-
};
|
|
291
|
-
export type PrefixMessages = SystemMessage | DeveloperMessage | UserMessage | AssistantMessage | ToolMessage;
|
|
292
|
-
export type InvokeDeploymentRequestContentMessages52 = TextContentPartSchema;
|
|
293
|
-
/**
|
|
294
|
-
* The contents of the tool message.
|
|
295
|
-
*/
|
|
296
|
-
export type InvokeDeploymentRequestMessages5Content = string | Array<TextContentPartSchema>;
|
|
297
|
-
/**
|
|
298
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
299
|
-
*/
|
|
300
|
-
export declare const InvokeDeploymentRequestMessagesType: {
|
|
301
|
-
readonly Ephemeral: "ephemeral";
|
|
302
|
-
};
|
|
303
|
-
/**
|
|
304
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
305
|
-
*/
|
|
306
|
-
export type InvokeDeploymentRequestMessagesType = ClosedEnum<typeof InvokeDeploymentRequestMessagesType>;
|
|
307
|
-
/**
|
|
308
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
309
|
-
*
|
|
310
|
-
* @remarks
|
|
311
|
-
*
|
|
312
|
-
* - `5m`: 5 minutes
|
|
313
|
-
* - `1h`: 1 hour
|
|
314
|
-
*
|
|
315
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
316
|
-
*/
|
|
317
|
-
export declare const MessagesTtl: {
|
|
318
|
-
readonly Fivem: "5m";
|
|
319
|
-
readonly Oneh: "1h";
|
|
320
|
-
};
|
|
321
|
-
/**
|
|
322
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
323
|
-
*
|
|
324
|
-
* @remarks
|
|
325
|
-
*
|
|
326
|
-
* - `5m`: 5 minutes
|
|
327
|
-
* - `1h`: 1 hour
|
|
328
|
-
*
|
|
329
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
330
|
-
*/
|
|
331
|
-
export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
|
|
332
|
-
export type MessagesCacheControl = {
|
|
333
|
-
/**
|
|
334
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
335
|
-
*/
|
|
336
|
-
type: InvokeDeploymentRequestMessagesType;
|
|
337
|
-
/**
|
|
338
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
339
|
-
*
|
|
340
|
-
* @remarks
|
|
341
|
-
*
|
|
342
|
-
* - `5m`: 5 minutes
|
|
343
|
-
* - `1h`: 1 hour
|
|
344
|
-
*
|
|
345
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
346
|
-
*/
|
|
347
|
-
ttl?: MessagesTtl | undefined;
|
|
348
|
-
};
|
|
349
|
-
export type MessagesToolMessage = {
|
|
350
|
-
/**
|
|
351
|
-
* The role of the messages author, in this case tool.
|
|
352
|
-
*/
|
|
353
|
-
role: "tool";
|
|
354
|
-
/**
|
|
355
|
-
* The contents of the tool message.
|
|
356
|
-
*/
|
|
357
|
-
content: string | Array<TextContentPartSchema>;
|
|
358
|
-
/**
|
|
359
|
-
* Tool call that this message is responding to.
|
|
360
|
-
*/
|
|
361
|
-
toolCallId: string | null;
|
|
362
|
-
cacheControl?: MessagesCacheControl | undefined;
|
|
363
|
-
};
|
|
364
|
-
export type InvokeDeploymentRequestContentMessages42 = (TextContentPartSchema & {
|
|
365
|
-
type: "text";
|
|
366
|
-
}) | RefusalPartSchema | ReasoningPartSchema | RedactedReasoningPartSchema;
|
|
367
|
-
/**
|
|
368
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
369
|
-
*/
|
|
370
|
-
export type InvokeDeploymentRequestMessages4Content = string | Array<(TextContentPartSchema & {
|
|
371
|
-
type: "text";
|
|
372
|
-
}) | RefusalPartSchema | ReasoningPartSchema | RedactedReasoningPartSchema>;
|
|
373
|
-
/**
|
|
374
|
-
* Data about a previous audio response from the model.
|
|
375
|
-
*/
|
|
376
|
-
export type MessagesAudio = {
|
|
377
|
-
/**
|
|
378
|
-
* Unique identifier for a previous audio response from the model.
|
|
379
|
-
*/
|
|
380
|
-
id: string;
|
|
381
|
-
};
|
|
382
|
-
/**
|
|
383
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
384
|
-
*/
|
|
385
|
-
export declare const MessagesType: {
|
|
386
|
-
readonly Function: "function";
|
|
387
|
-
};
|
|
388
|
-
/**
|
|
389
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
390
|
-
*/
|
|
391
|
-
export type MessagesType = ClosedEnum<typeof MessagesType>;
|
|
392
|
-
export type MessagesFunction = {
|
|
393
|
-
/**
|
|
394
|
-
* The name of the function to call.
|
|
395
|
-
*/
|
|
396
|
-
name?: string | undefined;
|
|
397
|
-
/**
|
|
398
|
-
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
399
|
-
*/
|
|
400
|
-
arguments?: string | undefined;
|
|
401
|
-
};
|
|
402
|
-
export type MessagesToolCalls = {
|
|
403
|
-
/**
|
|
404
|
-
* The ID of the tool call.
|
|
405
|
-
*/
|
|
406
|
-
id: string;
|
|
407
|
-
/**
|
|
408
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
409
|
-
*/
|
|
410
|
-
type: MessagesType;
|
|
411
|
-
function: MessagesFunction;
|
|
412
|
-
/**
|
|
413
|
-
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
414
|
-
*/
|
|
415
|
-
thoughtSignature?: string | undefined;
|
|
416
|
-
};
|
|
417
|
-
export type MessagesAssistantMessage = {
|
|
418
|
-
/**
|
|
419
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
420
|
-
*/
|
|
421
|
-
content?: string | Array<(TextContentPartSchema & {
|
|
422
|
-
type: "text";
|
|
423
|
-
}) | RefusalPartSchema | ReasoningPartSchema | RedactedReasoningPartSchema> | null | undefined;
|
|
424
|
-
/**
|
|
425
|
-
* The refusal message by the assistant.
|
|
426
|
-
*/
|
|
427
|
-
refusal?: string | null | undefined;
|
|
428
|
-
/**
|
|
429
|
-
* The role of the messages author, in this case `assistant`.
|
|
430
|
-
*/
|
|
431
|
-
role: "assistant";
|
|
432
|
-
/**
|
|
433
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
434
|
-
*/
|
|
435
|
-
name?: string | undefined;
|
|
436
|
-
/**
|
|
437
|
-
* Data about a previous audio response from the model.
|
|
438
|
-
*/
|
|
439
|
-
audio?: MessagesAudio | null | undefined;
|
|
440
|
-
/**
|
|
441
|
-
* The tool calls generated by the model, such as function calls.
|
|
442
|
-
*/
|
|
443
|
-
toolCalls?: Array<MessagesToolCalls> | undefined;
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
447
|
-
*/
|
|
448
|
-
export declare const InvokeDeploymentRequest2MessagesType: {
|
|
449
|
-
readonly Ephemeral: "ephemeral";
|
|
450
|
-
};
|
|
451
|
-
/**
|
|
452
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
453
|
-
*/
|
|
454
|
-
export type InvokeDeploymentRequest2MessagesType = ClosedEnum<typeof InvokeDeploymentRequest2MessagesType>;
|
|
455
|
-
/**
|
|
456
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
457
|
-
*
|
|
458
|
-
* @remarks
|
|
459
|
-
*
|
|
460
|
-
* - `5m`: 5 minutes
|
|
461
|
-
* - `1h`: 1 hour
|
|
462
|
-
*
|
|
463
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
464
|
-
*/
|
|
465
|
-
export declare const InvokeDeploymentRequest2Ttl: {
|
|
466
|
-
readonly Fivem: "5m";
|
|
467
|
-
readonly Oneh: "1h";
|
|
468
|
-
};
|
|
469
|
-
/**
|
|
470
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
471
|
-
*
|
|
472
|
-
* @remarks
|
|
473
|
-
*
|
|
474
|
-
* - `5m`: 5 minutes
|
|
475
|
-
* - `1h`: 1 hour
|
|
476
|
-
*
|
|
477
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
478
|
-
*/
|
|
479
|
-
export type InvokeDeploymentRequest2Ttl = ClosedEnum<typeof InvokeDeploymentRequest2Ttl>;
|
|
480
|
-
export type InvokeDeploymentRequest2CacheControl = {
|
|
481
|
-
/**
|
|
482
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
483
|
-
*/
|
|
484
|
-
type: InvokeDeploymentRequest2MessagesType;
|
|
485
|
-
/**
|
|
486
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
487
|
-
*
|
|
488
|
-
* @remarks
|
|
489
|
-
*
|
|
490
|
-
* - `5m`: 5 minutes
|
|
491
|
-
* - `1h`: 1 hour
|
|
492
|
-
*
|
|
493
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
494
|
-
*/
|
|
495
|
-
ttl?: InvokeDeploymentRequest2Ttl | undefined;
|
|
496
|
-
};
|
|
497
|
-
export type Two4 = {
|
|
498
|
-
/**
|
|
499
|
-
* The type of the content part. Always `file`.
|
|
500
|
-
*/
|
|
501
|
-
type: "file";
|
|
502
|
-
cacheControl?: InvokeDeploymentRequest2CacheControl | undefined;
|
|
503
|
-
/**
|
|
504
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
505
|
-
*/
|
|
506
|
-
file: FileContentPartSchema;
|
|
507
|
-
};
|
|
508
|
-
export type InvokeDeploymentRequestContentMessages2 = (TextContentPartSchema & {
|
|
509
|
-
type: "text";
|
|
510
|
-
}) | ImageContentPartSchema | AudioContentPartSchema | Two4;
|
|
511
|
-
/**
|
|
512
|
-
* The contents of the user message.
|
|
513
|
-
*/
|
|
514
|
-
export type InvokeDeploymentRequestMessages3Content = string | Array<(TextContentPartSchema & {
|
|
515
|
-
type: "text";
|
|
516
|
-
}) | ImageContentPartSchema | AudioContentPartSchema | Two4>;
|
|
517
|
-
export type MessagesUserMessage = {
|
|
518
|
-
/**
|
|
519
|
-
* The role of the messages author, in this case `user`.
|
|
520
|
-
*/
|
|
521
|
-
role: "user";
|
|
522
|
-
/**
|
|
523
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
524
|
-
*/
|
|
525
|
-
name?: string | undefined;
|
|
526
|
-
/**
|
|
527
|
-
* The contents of the user message.
|
|
528
|
-
*/
|
|
529
|
-
content: string | Array<(TextContentPartSchema & {
|
|
530
|
-
type: "text";
|
|
531
|
-
}) | ImageContentPartSchema | AudioContentPartSchema | Two4>;
|
|
532
|
-
};
|
|
533
|
-
/**
|
|
534
|
-
* The contents of the developer message.
|
|
535
|
-
*/
|
|
536
|
-
export type InvokeDeploymentRequestMessagesContent = string | Array<TextContentPartSchema>;
|
|
537
|
-
export type MessagesDeveloperMessage = {
|
|
538
|
-
/**
|
|
539
|
-
* The role of the messages author, in this case `developer`.
|
|
540
|
-
*/
|
|
541
|
-
role: "developer";
|
|
542
|
-
/**
|
|
543
|
-
* The contents of the developer message.
|
|
544
|
-
*/
|
|
545
|
-
content: string | Array<TextContentPartSchema>;
|
|
546
|
-
/**
|
|
547
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
548
|
-
*/
|
|
549
|
-
name?: string | undefined;
|
|
550
|
-
};
|
|
551
|
-
/**
|
|
552
|
-
* The contents of the system message.
|
|
553
|
-
*/
|
|
554
|
-
export type MessagesContent = string | Array<TextContentPartSchema>;
|
|
555
|
-
/**
|
|
556
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
557
|
-
*/
|
|
558
|
-
export type MessagesSystemMessage = {
|
|
559
|
-
/**
|
|
560
|
-
* The role of the messages author, in this case `system`.
|
|
561
|
-
*/
|
|
562
|
-
role: "system";
|
|
563
|
-
/**
|
|
564
|
-
* The contents of the system message.
|
|
565
|
-
*/
|
|
566
|
-
content: string | Array<TextContentPartSchema>;
|
|
567
|
-
/**
|
|
568
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
569
|
-
*/
|
|
570
|
-
name?: string | undefined;
|
|
571
|
-
};
|
|
572
|
-
export type Messages = MessagesSystemMessage | MessagesDeveloperMessage | MessagesUserMessage | MessagesAssistantMessage | MessagesToolMessage;
|
|
573
|
-
/**
|
|
574
|
-
* Metadata about the document
|
|
575
|
-
*/
|
|
576
|
-
export type InvokeDeploymentRequestMetadata = {
|
|
577
|
-
/**
|
|
578
|
-
* Name of the file the text is from.
|
|
579
|
-
*/
|
|
580
|
-
fileName?: string | undefined;
|
|
581
|
-
/**
|
|
582
|
-
* Content type of the file the text is from.
|
|
583
|
-
*/
|
|
584
|
-
fileType?: string | undefined;
|
|
585
|
-
/**
|
|
586
|
-
* The page number the text is from.
|
|
587
|
-
*/
|
|
588
|
-
pageNumber?: number | undefined;
|
|
589
|
-
};
|
|
590
|
-
export type Documents = {
|
|
591
|
-
/**
|
|
592
|
-
* The text content of the document
|
|
593
|
-
*/
|
|
594
|
-
text: string;
|
|
595
|
-
/**
|
|
596
|
-
* Metadata about the document
|
|
597
|
-
*/
|
|
598
|
-
metadata?: InvokeDeploymentRequestMetadata | undefined;
|
|
599
|
-
};
|
|
600
|
-
export type InvokeOptions = {
|
|
601
|
-
/**
|
|
602
|
-
* Whether to include the retrieved knowledge chunks in the response.
|
|
603
|
-
*/
|
|
604
|
-
includeRetrievals?: boolean | undefined;
|
|
605
|
-
/**
|
|
606
|
-
* Whether to include the usage metrics in the response.
|
|
607
|
-
*/
|
|
608
|
-
includeUsage?: boolean | undefined;
|
|
609
|
-
/**
|
|
610
|
-
* A mock response to use instead of calling the LLM API. This is useful for testing purposes. When provided, the system will return a response object with this content as the completion, without making an actual API call to the LLM provider. This works for both streaming and non-streaming requests. Mock responses will not generate logs, traces or be counted for your plan usage.
|
|
611
|
-
*/
|
|
612
|
-
mockResponse?: string | undefined;
|
|
613
|
-
};
|
|
614
|
-
export type Thread = {
|
|
615
|
-
/**
|
|
616
|
-
* Unique thread identifier to group related invocations.
|
|
617
|
-
*/
|
|
618
|
-
id: string;
|
|
619
|
-
/**
|
|
620
|
-
* Optional tags to differentiate or categorize threads
|
|
621
|
-
*/
|
|
622
|
-
tags?: Array<string> | undefined;
|
|
623
|
-
};
|
|
624
|
-
/**
|
|
625
|
-
* Exists
|
|
626
|
-
*/
|
|
627
|
-
export type OrExists = {
|
|
628
|
-
exists: boolean;
|
|
629
|
-
};
|
|
630
|
-
export type OrNin = string | number | boolean;
|
|
631
|
-
/**
|
|
632
|
-
* Not in
|
|
633
|
-
*/
|
|
634
|
-
export type InvokeDeploymentRequestOrNin = {
|
|
635
|
-
nin: Array<string | number | boolean>;
|
|
636
|
-
};
|
|
637
|
-
export type OrIn = string | number | boolean;
|
|
638
|
-
/**
|
|
639
|
-
* In
|
|
640
|
-
*/
|
|
641
|
-
export type InvokeDeploymentRequestOrIn = {
|
|
642
|
-
in: Array<string | number | boolean>;
|
|
643
|
-
};
|
|
644
|
-
/**
|
|
645
|
-
* Less than or equal to
|
|
646
|
-
*/
|
|
647
|
-
export type OrLte = {
|
|
648
|
-
lte: number;
|
|
649
|
-
};
|
|
650
|
-
/**
|
|
651
|
-
* Less than
|
|
652
|
-
*/
|
|
653
|
-
export type OrLt = {
|
|
654
|
-
lt: number;
|
|
655
|
-
};
|
|
656
|
-
/**
|
|
657
|
-
* Greater than or equal to
|
|
658
|
-
*/
|
|
659
|
-
export type OrGte = {
|
|
660
|
-
gte: number;
|
|
661
|
-
};
|
|
662
|
-
/**
|
|
663
|
-
* Greater than
|
|
664
|
-
*/
|
|
665
|
-
export type OrGt = {
|
|
666
|
-
gt: number;
|
|
667
|
-
};
|
|
668
|
-
export type OrNe = string | number | boolean;
|
|
669
|
-
/**
|
|
670
|
-
* Not equal to
|
|
671
|
-
*/
|
|
672
|
-
export type InvokeDeploymentRequestOrNe = {
|
|
673
|
-
ne: string | number | boolean;
|
|
674
|
-
};
|
|
675
|
-
export type OrEq = string | number | boolean;
|
|
676
|
-
/**
|
|
677
|
-
* Equal to
|
|
678
|
-
*/
|
|
679
|
-
export type InvokeDeploymentRequestOrEq = {
|
|
680
|
-
eq: string | number | boolean;
|
|
681
|
-
};
|
|
682
|
-
export type Or = InvokeDeploymentRequestOrEq | InvokeDeploymentRequestOrNe | OrGt | OrGte | OrLt | OrLte | InvokeDeploymentRequestOrIn | InvokeDeploymentRequestOrNin | OrExists;
|
|
683
|
-
/**
|
|
684
|
-
* Or
|
|
685
|
-
*/
|
|
686
|
-
export type KnowledgeFilterOr = {
|
|
687
|
-
or: Array<{
|
|
688
|
-
[k: string]: InvokeDeploymentRequestOrEq | InvokeDeploymentRequestOrNe | OrGt | OrGte | OrLt | OrLte | InvokeDeploymentRequestOrIn | InvokeDeploymentRequestOrNin | OrExists;
|
|
689
|
-
}>;
|
|
690
|
-
};
|
|
691
|
-
/**
|
|
692
|
-
* Exists
|
|
693
|
-
*/
|
|
694
|
-
export type AndExists = {
|
|
695
|
-
exists: boolean;
|
|
696
|
-
};
|
|
697
|
-
export type AndNin = string | number | boolean;
|
|
698
|
-
/**
|
|
699
|
-
* Not in
|
|
700
|
-
*/
|
|
701
|
-
export type InvokeDeploymentRequestAndNin = {
|
|
702
|
-
nin: Array<string | number | boolean>;
|
|
703
|
-
};
|
|
704
|
-
export type AndIn = string | number | boolean;
|
|
705
|
-
/**
|
|
706
|
-
* In
|
|
707
|
-
*/
|
|
708
|
-
export type InvokeDeploymentRequestAndIn = {
|
|
709
|
-
in: Array<string | number | boolean>;
|
|
710
|
-
};
|
|
711
|
-
/**
|
|
712
|
-
* Less than or equal to
|
|
713
|
-
*/
|
|
714
|
-
export type AndLte = {
|
|
715
|
-
lte: number;
|
|
716
|
-
};
|
|
717
|
-
/**
|
|
718
|
-
* Less than
|
|
719
|
-
*/
|
|
720
|
-
export type AndLt = {
|
|
721
|
-
lt: number;
|
|
722
|
-
};
|
|
723
|
-
/**
|
|
724
|
-
* Greater than or equal to
|
|
725
|
-
*/
|
|
726
|
-
export type AndGte = {
|
|
727
|
-
gte: number;
|
|
728
|
-
};
|
|
729
|
-
/**
|
|
730
|
-
* Greater than
|
|
731
|
-
*/
|
|
732
|
-
export type AndGt = {
|
|
733
|
-
gt: number;
|
|
734
|
-
};
|
|
735
|
-
export type AndNe = string | number | boolean;
|
|
736
|
-
/**
|
|
737
|
-
* Not equal to
|
|
738
|
-
*/
|
|
739
|
-
export type InvokeDeploymentRequestAndNe = {
|
|
740
|
-
ne: string | number | boolean;
|
|
741
|
-
};
|
|
742
|
-
export type AndEq = string | number | boolean;
|
|
743
|
-
/**
|
|
744
|
-
* Equal to
|
|
745
|
-
*/
|
|
746
|
-
export type InvokeDeploymentRequestAndEq = {
|
|
747
|
-
eq: string | number | boolean;
|
|
748
|
-
};
|
|
749
|
-
export type And = InvokeDeploymentRequestAndEq | InvokeDeploymentRequestAndNe | AndGt | AndGte | AndLt | AndLte | InvokeDeploymentRequestAndIn | InvokeDeploymentRequestAndNin | AndExists;
|
|
750
|
-
/**
|
|
751
|
-
* And
|
|
752
|
-
*/
|
|
753
|
-
export type KnowledgeFilterAnd = {
|
|
754
|
-
and: Array<{
|
|
755
|
-
[k: string]: InvokeDeploymentRequestAndEq | InvokeDeploymentRequestAndNe | AndGt | AndGte | AndLt | AndLte | InvokeDeploymentRequestAndIn | InvokeDeploymentRequestAndNin | AndExists;
|
|
756
|
-
}>;
|
|
757
|
-
};
|
|
758
|
-
/**
|
|
759
|
-
* Exists
|
|
760
|
-
*/
|
|
761
|
-
export type Exists = {
|
|
762
|
-
exists: boolean;
|
|
763
|
-
};
|
|
764
|
-
export type Nin = string | number | boolean;
|
|
765
|
-
/**
|
|
766
|
-
* Not in
|
|
767
|
-
*/
|
|
768
|
-
export type OneNin = {
|
|
769
|
-
nin: Array<string | number | boolean>;
|
|
770
|
-
};
|
|
771
|
-
export type In = string | number | boolean;
|
|
772
|
-
/**
|
|
773
|
-
* In
|
|
774
|
-
*/
|
|
775
|
-
export type OneIn = {
|
|
776
|
-
in: Array<string | number | boolean>;
|
|
777
|
-
};
|
|
778
|
-
/**
|
|
779
|
-
* Less than or equal to
|
|
780
|
-
*/
|
|
781
|
-
export type Lte = {
|
|
782
|
-
lte: number;
|
|
783
|
-
};
|
|
784
|
-
/**
|
|
785
|
-
* Less than
|
|
786
|
-
*/
|
|
787
|
-
export type Lt = {
|
|
788
|
-
lt: number;
|
|
789
|
-
};
|
|
790
|
-
/**
|
|
791
|
-
* Greater than or equal to
|
|
792
|
-
*/
|
|
793
|
-
export type Gte = {
|
|
794
|
-
gte: number;
|
|
795
|
-
};
|
|
796
|
-
/**
|
|
797
|
-
* Greater than
|
|
798
|
-
*/
|
|
799
|
-
export type Gt = {
|
|
800
|
-
gt: number;
|
|
801
|
-
};
|
|
802
|
-
export type Ne = string | number | boolean;
|
|
803
|
-
/**
|
|
804
|
-
* Not equal to
|
|
805
|
-
*/
|
|
806
|
-
export type OneNe = {
|
|
807
|
-
ne: string | number | boolean;
|
|
808
|
-
};
|
|
809
|
-
export type Eq = string | number | boolean;
|
|
810
|
-
/**
|
|
811
|
-
* Equal to
|
|
812
|
-
*/
|
|
813
|
-
export type OneEq = {
|
|
814
|
-
eq: string | number | boolean;
|
|
815
|
-
};
|
|
816
|
-
export type One = OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
817
|
-
/**
|
|
818
|
-
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
819
|
-
*/
|
|
820
|
-
export type KnowledgeFilter = KnowledgeFilterAnd | KnowledgeFilterOr | {
|
|
821
|
-
[k: string]: OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
822
|
-
};
|
|
823
|
-
/**
|
|
824
|
-
* The deployment request payload
|
|
825
|
-
*/
|
|
826
|
-
export type InvokeDeploymentRequest = {
|
|
827
|
-
/**
|
|
828
|
-
* The deployment key to invoke
|
|
829
|
-
*/
|
|
830
|
-
key: string;
|
|
831
|
-
/**
|
|
832
|
-
* If set, partial message content will be sent. Tokens will be sent as data-only `server-sent events` as they become available, with the stream terminated by a `data: [DONE]` message.
|
|
833
|
-
*/
|
|
834
|
-
stream?: boolean | undefined;
|
|
835
|
-
/**
|
|
836
|
-
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
837
|
-
*/
|
|
838
|
-
inputs?: {
|
|
839
|
-
[k: string]: any;
|
|
840
|
-
} | undefined;
|
|
841
|
-
/**
|
|
842
|
-
* Key-value pairs that match your data model and fields declared in your deployment routing configuration
|
|
843
|
-
*/
|
|
844
|
-
context?: {
|
|
845
|
-
[k: string]: any;
|
|
846
|
-
} | undefined;
|
|
847
|
-
/**
|
|
848
|
-
* A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
|
|
849
|
-
*/
|
|
850
|
-
prefixMessages?: Array<SystemMessage | DeveloperMessage | UserMessage | AssistantMessage | ToolMessage> | undefined;
|
|
851
|
-
/**
|
|
852
|
-
* A list of messages to send to the deployment.
|
|
853
|
-
*/
|
|
854
|
-
messages?: Array<MessagesSystemMessage | MessagesDeveloperMessage | MessagesUserMessage | MessagesAssistantMessage | MessagesToolMessage> | undefined;
|
|
855
|
-
/**
|
|
856
|
-
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
857
|
-
*/
|
|
858
|
-
identity?: PublicIdentity | undefined;
|
|
859
|
-
/**
|
|
860
|
-
* A list of file IDs that are associated with the deployment request.
|
|
861
|
-
*/
|
|
862
|
-
fileIds?: Array<string> | undefined;
|
|
863
|
-
/**
|
|
864
|
-
* Key-value pairs that you want to attach to the log generated by this request.
|
|
865
|
-
*/
|
|
866
|
-
metadata?: {
|
|
867
|
-
[k: string]: any;
|
|
868
|
-
} | undefined;
|
|
869
|
-
/**
|
|
870
|
-
* Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
|
|
871
|
-
*/
|
|
872
|
-
extraParams?: {
|
|
873
|
-
[k: string]: any;
|
|
874
|
-
} | undefined;
|
|
875
|
-
/**
|
|
876
|
-
* A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
|
|
877
|
-
*/
|
|
878
|
-
documents?: Array<Documents> | undefined;
|
|
879
|
-
invokeOptions?: InvokeOptions | undefined;
|
|
880
|
-
thread?: Thread | undefined;
|
|
881
|
-
/**
|
|
882
|
-
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
883
|
-
*/
|
|
884
|
-
knowledgeFilter?: KnowledgeFilterAnd | KnowledgeFilterOr | {
|
|
885
|
-
[k: string]: OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
|
|
886
|
-
} | undefined;
|
|
887
|
-
};
|
|
888
|
-
/** @internal */
|
|
889
|
-
export type InvokeDeploymentRequestContent2$Outbound = TextContentPartSchema$Outbound;
|
|
890
|
-
/** @internal */
|
|
891
|
-
export declare const InvokeDeploymentRequestContent2$outboundSchema: z.ZodType<InvokeDeploymentRequestContent2$Outbound, z.ZodTypeDef, InvokeDeploymentRequestContent2>;
|
|
892
|
-
export declare function invokeDeploymentRequestContent2ToJSON(invokeDeploymentRequestContent2: InvokeDeploymentRequestContent2): string;
|
|
893
|
-
/** @internal */
|
|
894
|
-
export type InvokeDeploymentRequestPrefixMessages5Content$Outbound = string | Array<TextContentPartSchema$Outbound>;
|
|
895
|
-
/** @internal */
|
|
896
|
-
export declare const InvokeDeploymentRequestPrefixMessages5Content$outboundSchema: z.ZodType<InvokeDeploymentRequestPrefixMessages5Content$Outbound, z.ZodTypeDef, InvokeDeploymentRequestPrefixMessages5Content>;
|
|
897
|
-
export declare function invokeDeploymentRequestPrefixMessages5ContentToJSON(invokeDeploymentRequestPrefixMessages5Content: InvokeDeploymentRequestPrefixMessages5Content): string;
|
|
898
|
-
/** @internal */
|
|
899
|
-
export declare const InvokeDeploymentRequestPrefixMessagesType$outboundSchema: z.ZodNativeEnum<typeof InvokeDeploymentRequestPrefixMessagesType>;
|
|
900
|
-
/** @internal */
|
|
901
|
-
export declare const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<typeof PrefixMessagesTtl>;
|
|
902
|
-
/** @internal */
|
|
903
|
-
export type PrefixMessagesCacheControl$Outbound = {
|
|
904
|
-
type: string;
|
|
905
|
-
ttl: string;
|
|
906
|
-
};
|
|
907
|
-
/** @internal */
|
|
908
|
-
export declare const PrefixMessagesCacheControl$outboundSchema: z.ZodType<PrefixMessagesCacheControl$Outbound, z.ZodTypeDef, PrefixMessagesCacheControl>;
|
|
909
|
-
export declare function prefixMessagesCacheControlToJSON(prefixMessagesCacheControl: PrefixMessagesCacheControl): string;
|
|
910
|
-
/** @internal */
|
|
911
|
-
export type ToolMessage$Outbound = {
|
|
912
|
-
role: "tool";
|
|
913
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
914
|
-
tool_call_id: string | null;
|
|
915
|
-
cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
|
|
916
|
-
};
|
|
917
|
-
/** @internal */
|
|
918
|
-
export declare const ToolMessage$outboundSchema: z.ZodType<ToolMessage$Outbound, z.ZodTypeDef, ToolMessage>;
|
|
919
|
-
export declare function toolMessageToJSON(toolMessage: ToolMessage): string;
|
|
920
|
-
/** @internal */
|
|
921
|
-
export type Content2$Outbound = (TextContentPartSchema$Outbound & {
|
|
922
|
-
type: "text";
|
|
923
|
-
}) | RefusalPartSchema$Outbound | ReasoningPartSchema$Outbound | RedactedReasoningPartSchema$Outbound;
|
|
924
|
-
/** @internal */
|
|
925
|
-
export declare const Content2$outboundSchema: z.ZodType<Content2$Outbound, z.ZodTypeDef, Content2>;
|
|
926
|
-
export declare function content2ToJSON(content2: Content2): string;
|
|
927
|
-
/** @internal */
|
|
928
|
-
export type InvokeDeploymentRequestPrefixMessages4Content$Outbound = string | Array<(TextContentPartSchema$Outbound & {
|
|
929
|
-
type: "text";
|
|
930
|
-
}) | RefusalPartSchema$Outbound | ReasoningPartSchema$Outbound | RedactedReasoningPartSchema$Outbound>;
|
|
931
|
-
/** @internal */
|
|
932
|
-
export declare const InvokeDeploymentRequestPrefixMessages4Content$outboundSchema: z.ZodType<InvokeDeploymentRequestPrefixMessages4Content$Outbound, z.ZodTypeDef, InvokeDeploymentRequestPrefixMessages4Content>;
|
|
933
|
-
export declare function invokeDeploymentRequestPrefixMessages4ContentToJSON(invokeDeploymentRequestPrefixMessages4Content: InvokeDeploymentRequestPrefixMessages4Content): string;
|
|
934
|
-
/** @internal */
|
|
935
|
-
export type Audio$Outbound = {
|
|
936
|
-
id: string;
|
|
937
|
-
};
|
|
938
|
-
/** @internal */
|
|
939
|
-
export declare const Audio$outboundSchema: z.ZodType<Audio$Outbound, z.ZodTypeDef, Audio>;
|
|
940
|
-
export declare function audioToJSON(audio: Audio): string;
|
|
941
|
-
/** @internal */
|
|
942
|
-
export declare const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<typeof PrefixMessagesType>;
|
|
943
|
-
/** @internal */
|
|
944
|
-
export type PrefixMessagesFunction$Outbound = {
|
|
945
|
-
name?: string | undefined;
|
|
946
|
-
arguments?: string | undefined;
|
|
947
|
-
};
|
|
948
|
-
/** @internal */
|
|
949
|
-
export declare const PrefixMessagesFunction$outboundSchema: z.ZodType<PrefixMessagesFunction$Outbound, z.ZodTypeDef, PrefixMessagesFunction>;
|
|
950
|
-
export declare function prefixMessagesFunctionToJSON(prefixMessagesFunction: PrefixMessagesFunction): string;
|
|
951
|
-
/** @internal */
|
|
952
|
-
export type ToolCalls$Outbound = {
|
|
953
|
-
id: string;
|
|
954
|
-
type: string;
|
|
955
|
-
function: PrefixMessagesFunction$Outbound;
|
|
956
|
-
thought_signature?: string | undefined;
|
|
957
|
-
};
|
|
958
|
-
/** @internal */
|
|
959
|
-
export declare const ToolCalls$outboundSchema: z.ZodType<ToolCalls$Outbound, z.ZodTypeDef, ToolCalls>;
|
|
960
|
-
export declare function toolCallsToJSON(toolCalls: ToolCalls): string;
|
|
961
|
-
/** @internal */
|
|
962
|
-
export type AssistantMessage$Outbound = {
|
|
963
|
-
content?: string | Array<(TextContentPartSchema$Outbound & {
|
|
964
|
-
type: "text";
|
|
965
|
-
}) | RefusalPartSchema$Outbound | ReasoningPartSchema$Outbound | RedactedReasoningPartSchema$Outbound> | null | undefined;
|
|
966
|
-
refusal?: string | null | undefined;
|
|
967
|
-
role: "assistant";
|
|
968
|
-
name?: string | undefined;
|
|
969
|
-
audio?: Audio$Outbound | null | undefined;
|
|
970
|
-
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
971
|
-
};
|
|
972
|
-
/** @internal */
|
|
973
|
-
export declare const AssistantMessage$outboundSchema: z.ZodType<AssistantMessage$Outbound, z.ZodTypeDef, AssistantMessage>;
|
|
974
|
-
export declare function assistantMessageToJSON(assistantMessage: AssistantMessage): string;
|
|
975
|
-
/** @internal */
|
|
976
|
-
export declare const InvokeDeploymentRequest2PrefixMessagesType$outboundSchema: z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessagesType>;
|
|
977
|
-
/** @internal */
|
|
978
|
-
export declare const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl>;
|
|
979
|
-
/** @internal */
|
|
980
|
-
export type TwoCacheControl$Outbound = {
|
|
981
|
-
type: string;
|
|
982
|
-
ttl: string;
|
|
983
|
-
};
|
|
984
|
-
/** @internal */
|
|
985
|
-
export declare const TwoCacheControl$outboundSchema: z.ZodType<TwoCacheControl$Outbound, z.ZodTypeDef, TwoCacheControl>;
|
|
986
|
-
export declare function twoCacheControlToJSON(twoCacheControl: TwoCacheControl): string;
|
|
987
|
-
/** @internal */
|
|
988
|
-
export type Four$Outbound = {
|
|
989
|
-
type: "file";
|
|
990
|
-
cache_control?: TwoCacheControl$Outbound | undefined;
|
|
991
|
-
file: FileContentPartSchema$Outbound;
|
|
992
|
-
};
|
|
993
|
-
/** @internal */
|
|
994
|
-
export declare const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
|
|
995
|
-
export declare function fourToJSON(four: Four): string;
|
|
996
|
-
/** @internal */
|
|
997
|
-
export type Two$Outbound = (TextContentPartSchema$Outbound & {
|
|
998
|
-
type: "text";
|
|
999
|
-
}) | ImageContentPartSchema$Outbound | AudioContentPartSchema$Outbound | Four$Outbound;
|
|
1000
|
-
/** @internal */
|
|
1001
|
-
export declare const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
|
|
1002
|
-
export declare function twoToJSON(two: Two): string;
|
|
1003
|
-
/** @internal */
|
|
1004
|
-
export type InvokeDeploymentRequestPrefixMessagesContent$Outbound = string | Array<(TextContentPartSchema$Outbound & {
|
|
1005
|
-
type: "text";
|
|
1006
|
-
}) | ImageContentPartSchema$Outbound | AudioContentPartSchema$Outbound | Four$Outbound>;
|
|
1007
|
-
/** @internal */
|
|
1008
|
-
export declare const InvokeDeploymentRequestPrefixMessagesContent$outboundSchema: z.ZodType<InvokeDeploymentRequestPrefixMessagesContent$Outbound, z.ZodTypeDef, InvokeDeploymentRequestPrefixMessagesContent>;
|
|
1009
|
-
export declare function invokeDeploymentRequestPrefixMessagesContentToJSON(invokeDeploymentRequestPrefixMessagesContent: InvokeDeploymentRequestPrefixMessagesContent): string;
|
|
1010
|
-
/** @internal */
|
|
1011
|
-
export type UserMessage$Outbound = {
|
|
1012
|
-
role: "user";
|
|
1013
|
-
name?: string | undefined;
|
|
1014
|
-
content: string | Array<(TextContentPartSchema$Outbound & {
|
|
1015
|
-
type: "text";
|
|
1016
|
-
}) | ImageContentPartSchema$Outbound | AudioContentPartSchema$Outbound | Four$Outbound>;
|
|
1017
|
-
};
|
|
1018
|
-
/** @internal */
|
|
1019
|
-
export declare const UserMessage$outboundSchema: z.ZodType<UserMessage$Outbound, z.ZodTypeDef, UserMessage>;
|
|
1020
|
-
export declare function userMessageToJSON(userMessage: UserMessage): string;
|
|
1021
|
-
/** @internal */
|
|
1022
|
-
export type PrefixMessagesContent$Outbound = string | Array<TextContentPartSchema$Outbound>;
|
|
1023
|
-
/** @internal */
|
|
1024
|
-
export declare const PrefixMessagesContent$outboundSchema: z.ZodType<PrefixMessagesContent$Outbound, z.ZodTypeDef, PrefixMessagesContent>;
|
|
1025
|
-
export declare function prefixMessagesContentToJSON(prefixMessagesContent: PrefixMessagesContent): string;
|
|
1026
|
-
/** @internal */
|
|
1027
|
-
export type DeveloperMessage$Outbound = {
|
|
1028
|
-
role: "developer";
|
|
1029
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1030
|
-
name?: string | undefined;
|
|
1031
|
-
};
|
|
1032
|
-
/** @internal */
|
|
1033
|
-
export declare const DeveloperMessage$outboundSchema: z.ZodType<DeveloperMessage$Outbound, z.ZodTypeDef, DeveloperMessage>;
|
|
1034
|
-
export declare function developerMessageToJSON(developerMessage: DeveloperMessage): string;
|
|
1035
|
-
/** @internal */
|
|
1036
|
-
export type Content$Outbound = string | Array<TextContentPartSchema$Outbound>;
|
|
1037
|
-
/** @internal */
|
|
1038
|
-
export declare const Content$outboundSchema: z.ZodType<Content$Outbound, z.ZodTypeDef, Content>;
|
|
1039
|
-
export declare function contentToJSON(content: Content): string;
|
|
1040
|
-
/** @internal */
|
|
1041
|
-
export type SystemMessage$Outbound = {
|
|
1042
|
-
role: "system";
|
|
1043
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1044
|
-
name?: string | undefined;
|
|
1045
|
-
};
|
|
1046
|
-
/** @internal */
|
|
1047
|
-
export declare const SystemMessage$outboundSchema: z.ZodType<SystemMessage$Outbound, z.ZodTypeDef, SystemMessage>;
|
|
1048
|
-
export declare function systemMessageToJSON(systemMessage: SystemMessage): string;
|
|
1049
|
-
/** @internal */
|
|
1050
|
-
export type PrefixMessages$Outbound = SystemMessage$Outbound | DeveloperMessage$Outbound | UserMessage$Outbound | AssistantMessage$Outbound | ToolMessage$Outbound;
|
|
1051
|
-
/** @internal */
|
|
1052
|
-
export declare const PrefixMessages$outboundSchema: z.ZodType<PrefixMessages$Outbound, z.ZodTypeDef, PrefixMessages>;
|
|
1053
|
-
export declare function prefixMessagesToJSON(prefixMessages: PrefixMessages): string;
|
|
1054
|
-
/** @internal */
|
|
1055
|
-
export type InvokeDeploymentRequestContentMessages52$Outbound = TextContentPartSchema$Outbound;
|
|
1056
|
-
/** @internal */
|
|
1057
|
-
export declare const InvokeDeploymentRequestContentMessages52$outboundSchema: z.ZodType<InvokeDeploymentRequestContentMessages52$Outbound, z.ZodTypeDef, InvokeDeploymentRequestContentMessages52>;
|
|
1058
|
-
export declare function invokeDeploymentRequestContentMessages52ToJSON(invokeDeploymentRequestContentMessages52: InvokeDeploymentRequestContentMessages52): string;
|
|
1059
|
-
/** @internal */
|
|
1060
|
-
export type InvokeDeploymentRequestMessages5Content$Outbound = string | Array<TextContentPartSchema$Outbound>;
|
|
1061
|
-
/** @internal */
|
|
1062
|
-
export declare const InvokeDeploymentRequestMessages5Content$outboundSchema: z.ZodType<InvokeDeploymentRequestMessages5Content$Outbound, z.ZodTypeDef, InvokeDeploymentRequestMessages5Content>;
|
|
1063
|
-
export declare function invokeDeploymentRequestMessages5ContentToJSON(invokeDeploymentRequestMessages5Content: InvokeDeploymentRequestMessages5Content): string;
|
|
1064
|
-
/** @internal */
|
|
1065
|
-
export declare const InvokeDeploymentRequestMessagesType$outboundSchema: z.ZodNativeEnum<typeof InvokeDeploymentRequestMessagesType>;
|
|
1066
|
-
/** @internal */
|
|
1067
|
-
export declare const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl>;
|
|
1068
|
-
/** @internal */
|
|
1069
|
-
export type MessagesCacheControl$Outbound = {
|
|
1070
|
-
type: string;
|
|
1071
|
-
ttl: string;
|
|
1072
|
-
};
|
|
1073
|
-
/** @internal */
|
|
1074
|
-
export declare const MessagesCacheControl$outboundSchema: z.ZodType<MessagesCacheControl$Outbound, z.ZodTypeDef, MessagesCacheControl>;
|
|
1075
|
-
export declare function messagesCacheControlToJSON(messagesCacheControl: MessagesCacheControl): string;
|
|
1076
|
-
/** @internal */
|
|
1077
|
-
export type MessagesToolMessage$Outbound = {
|
|
1078
|
-
role: "tool";
|
|
1079
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1080
|
-
tool_call_id: string | null;
|
|
1081
|
-
cache_control?: MessagesCacheControl$Outbound | undefined;
|
|
1082
|
-
};
|
|
1083
|
-
/** @internal */
|
|
1084
|
-
export declare const MessagesToolMessage$outboundSchema: z.ZodType<MessagesToolMessage$Outbound, z.ZodTypeDef, MessagesToolMessage>;
|
|
1085
|
-
export declare function messagesToolMessageToJSON(messagesToolMessage: MessagesToolMessage): string;
|
|
1086
|
-
/** @internal */
|
|
1087
|
-
export type InvokeDeploymentRequestContentMessages42$Outbound = (TextContentPartSchema$Outbound & {
|
|
1088
|
-
type: "text";
|
|
1089
|
-
}) | RefusalPartSchema$Outbound | ReasoningPartSchema$Outbound | RedactedReasoningPartSchema$Outbound;
|
|
1090
|
-
/** @internal */
|
|
1091
|
-
export declare const InvokeDeploymentRequestContentMessages42$outboundSchema: z.ZodType<InvokeDeploymentRequestContentMessages42$Outbound, z.ZodTypeDef, InvokeDeploymentRequestContentMessages42>;
|
|
1092
|
-
export declare function invokeDeploymentRequestContentMessages42ToJSON(invokeDeploymentRequestContentMessages42: InvokeDeploymentRequestContentMessages42): string;
|
|
1093
|
-
/** @internal */
|
|
1094
|
-
export type InvokeDeploymentRequestMessages4Content$Outbound = string | Array<(TextContentPartSchema$Outbound & {
|
|
1095
|
-
type: "text";
|
|
1096
|
-
}) | RefusalPartSchema$Outbound | ReasoningPartSchema$Outbound | RedactedReasoningPartSchema$Outbound>;
|
|
1097
|
-
/** @internal */
|
|
1098
|
-
export declare const InvokeDeploymentRequestMessages4Content$outboundSchema: z.ZodType<InvokeDeploymentRequestMessages4Content$Outbound, z.ZodTypeDef, InvokeDeploymentRequestMessages4Content>;
|
|
1099
|
-
export declare function invokeDeploymentRequestMessages4ContentToJSON(invokeDeploymentRequestMessages4Content: InvokeDeploymentRequestMessages4Content): string;
|
|
1100
|
-
/** @internal */
|
|
1101
|
-
export type MessagesAudio$Outbound = {
|
|
1102
|
-
id: string;
|
|
1103
|
-
};
|
|
1104
|
-
/** @internal */
|
|
1105
|
-
export declare const MessagesAudio$outboundSchema: z.ZodType<MessagesAudio$Outbound, z.ZodTypeDef, MessagesAudio>;
|
|
1106
|
-
export declare function messagesAudioToJSON(messagesAudio: MessagesAudio): string;
|
|
1107
|
-
/** @internal */
|
|
1108
|
-
export declare const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType>;
|
|
1109
|
-
/** @internal */
|
|
1110
|
-
export type MessagesFunction$Outbound = {
|
|
1111
|
-
name?: string | undefined;
|
|
1112
|
-
arguments?: string | undefined;
|
|
1113
|
-
};
|
|
1114
|
-
/** @internal */
|
|
1115
|
-
export declare const MessagesFunction$outboundSchema: z.ZodType<MessagesFunction$Outbound, z.ZodTypeDef, MessagesFunction>;
|
|
1116
|
-
export declare function messagesFunctionToJSON(messagesFunction: MessagesFunction): string;
|
|
1117
|
-
/** @internal */
|
|
1118
|
-
export type MessagesToolCalls$Outbound = {
|
|
1119
|
-
id: string;
|
|
1120
|
-
type: string;
|
|
1121
|
-
function: MessagesFunction$Outbound;
|
|
1122
|
-
thought_signature?: string | undefined;
|
|
1123
|
-
};
|
|
1124
|
-
/** @internal */
|
|
1125
|
-
export declare const MessagesToolCalls$outboundSchema: z.ZodType<MessagesToolCalls$Outbound, z.ZodTypeDef, MessagesToolCalls>;
|
|
1126
|
-
export declare function messagesToolCallsToJSON(messagesToolCalls: MessagesToolCalls): string;
|
|
1127
|
-
/** @internal */
|
|
1128
|
-
export type MessagesAssistantMessage$Outbound = {
|
|
1129
|
-
content?: string | Array<(TextContentPartSchema$Outbound & {
|
|
1130
|
-
type: "text";
|
|
1131
|
-
}) | RefusalPartSchema$Outbound | ReasoningPartSchema$Outbound | RedactedReasoningPartSchema$Outbound> | null | undefined;
|
|
1132
|
-
refusal?: string | null | undefined;
|
|
1133
|
-
role: "assistant";
|
|
1134
|
-
name?: string | undefined;
|
|
1135
|
-
audio?: MessagesAudio$Outbound | null | undefined;
|
|
1136
|
-
tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
|
|
1137
|
-
};
|
|
1138
|
-
/** @internal */
|
|
1139
|
-
export declare const MessagesAssistantMessage$outboundSchema: z.ZodType<MessagesAssistantMessage$Outbound, z.ZodTypeDef, MessagesAssistantMessage>;
|
|
1140
|
-
export declare function messagesAssistantMessageToJSON(messagesAssistantMessage: MessagesAssistantMessage): string;
|
|
1141
|
-
/** @internal */
|
|
1142
|
-
export declare const InvokeDeploymentRequest2MessagesType$outboundSchema: z.ZodNativeEnum<typeof InvokeDeploymentRequest2MessagesType>;
|
|
1143
|
-
/** @internal */
|
|
1144
|
-
export declare const InvokeDeploymentRequest2Ttl$outboundSchema: z.ZodNativeEnum<typeof InvokeDeploymentRequest2Ttl>;
|
|
1145
|
-
/** @internal */
|
|
1146
|
-
export type InvokeDeploymentRequest2CacheControl$Outbound = {
|
|
1147
|
-
type: string;
|
|
1148
|
-
ttl: string;
|
|
1149
|
-
};
|
|
1150
|
-
/** @internal */
|
|
1151
|
-
export declare const InvokeDeploymentRequest2CacheControl$outboundSchema: z.ZodType<InvokeDeploymentRequest2CacheControl$Outbound, z.ZodTypeDef, InvokeDeploymentRequest2CacheControl>;
|
|
1152
|
-
export declare function invokeDeploymentRequest2CacheControlToJSON(invokeDeploymentRequest2CacheControl: InvokeDeploymentRequest2CacheControl): string;
|
|
1153
|
-
/** @internal */
|
|
1154
|
-
export type Two4$Outbound = {
|
|
1155
|
-
type: "file";
|
|
1156
|
-
cache_control?: InvokeDeploymentRequest2CacheControl$Outbound | undefined;
|
|
1157
|
-
file: FileContentPartSchema$Outbound;
|
|
1158
|
-
};
|
|
1159
|
-
/** @internal */
|
|
1160
|
-
export declare const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4>;
|
|
1161
|
-
export declare function two4ToJSON(two4: Two4): string;
|
|
1162
|
-
/** @internal */
|
|
1163
|
-
export type InvokeDeploymentRequestContentMessages2$Outbound = (TextContentPartSchema$Outbound & {
|
|
1164
|
-
type: "text";
|
|
1165
|
-
}) | ImageContentPartSchema$Outbound | AudioContentPartSchema$Outbound | Two4$Outbound;
|
|
1166
|
-
/** @internal */
|
|
1167
|
-
export declare const InvokeDeploymentRequestContentMessages2$outboundSchema: z.ZodType<InvokeDeploymentRequestContentMessages2$Outbound, z.ZodTypeDef, InvokeDeploymentRequestContentMessages2>;
|
|
1168
|
-
export declare function invokeDeploymentRequestContentMessages2ToJSON(invokeDeploymentRequestContentMessages2: InvokeDeploymentRequestContentMessages2): string;
|
|
1169
|
-
/** @internal */
|
|
1170
|
-
export type InvokeDeploymentRequestMessages3Content$Outbound = string | Array<(TextContentPartSchema$Outbound & {
|
|
1171
|
-
type: "text";
|
|
1172
|
-
}) | ImageContentPartSchema$Outbound | AudioContentPartSchema$Outbound | Two4$Outbound>;
|
|
1173
|
-
/** @internal */
|
|
1174
|
-
export declare const InvokeDeploymentRequestMessages3Content$outboundSchema: z.ZodType<InvokeDeploymentRequestMessages3Content$Outbound, z.ZodTypeDef, InvokeDeploymentRequestMessages3Content>;
|
|
1175
|
-
export declare function invokeDeploymentRequestMessages3ContentToJSON(invokeDeploymentRequestMessages3Content: InvokeDeploymentRequestMessages3Content): string;
|
|
1176
|
-
/** @internal */
|
|
1177
|
-
export type MessagesUserMessage$Outbound = {
|
|
1178
|
-
role: "user";
|
|
1179
|
-
name?: string | undefined;
|
|
1180
|
-
content: string | Array<(TextContentPartSchema$Outbound & {
|
|
1181
|
-
type: "text";
|
|
1182
|
-
}) | ImageContentPartSchema$Outbound | AudioContentPartSchema$Outbound | Two4$Outbound>;
|
|
1183
|
-
};
|
|
1184
|
-
/** @internal */
|
|
1185
|
-
export declare const MessagesUserMessage$outboundSchema: z.ZodType<MessagesUserMessage$Outbound, z.ZodTypeDef, MessagesUserMessage>;
|
|
1186
|
-
export declare function messagesUserMessageToJSON(messagesUserMessage: MessagesUserMessage): string;
|
|
1187
|
-
/** @internal */
|
|
1188
|
-
export type InvokeDeploymentRequestMessagesContent$Outbound = string | Array<TextContentPartSchema$Outbound>;
|
|
1189
|
-
/** @internal */
|
|
1190
|
-
export declare const InvokeDeploymentRequestMessagesContent$outboundSchema: z.ZodType<InvokeDeploymentRequestMessagesContent$Outbound, z.ZodTypeDef, InvokeDeploymentRequestMessagesContent>;
|
|
1191
|
-
export declare function invokeDeploymentRequestMessagesContentToJSON(invokeDeploymentRequestMessagesContent: InvokeDeploymentRequestMessagesContent): string;
|
|
1192
|
-
/** @internal */
|
|
1193
|
-
export type MessagesDeveloperMessage$Outbound = {
|
|
1194
|
-
role: "developer";
|
|
1195
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1196
|
-
name?: string | undefined;
|
|
1197
|
-
};
|
|
1198
|
-
/** @internal */
|
|
1199
|
-
export declare const MessagesDeveloperMessage$outboundSchema: z.ZodType<MessagesDeveloperMessage$Outbound, z.ZodTypeDef, MessagesDeveloperMessage>;
|
|
1200
|
-
export declare function messagesDeveloperMessageToJSON(messagesDeveloperMessage: MessagesDeveloperMessage): string;
|
|
1201
|
-
/** @internal */
|
|
1202
|
-
export type MessagesContent$Outbound = string | Array<TextContentPartSchema$Outbound>;
|
|
1203
|
-
/** @internal */
|
|
1204
|
-
export declare const MessagesContent$outboundSchema: z.ZodType<MessagesContent$Outbound, z.ZodTypeDef, MessagesContent>;
|
|
1205
|
-
export declare function messagesContentToJSON(messagesContent: MessagesContent): string;
|
|
1206
|
-
/** @internal */
|
|
1207
|
-
export type MessagesSystemMessage$Outbound = {
|
|
1208
|
-
role: "system";
|
|
1209
|
-
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1210
|
-
name?: string | undefined;
|
|
1211
|
-
};
|
|
1212
|
-
/** @internal */
|
|
1213
|
-
export declare const MessagesSystemMessage$outboundSchema: z.ZodType<MessagesSystemMessage$Outbound, z.ZodTypeDef, MessagesSystemMessage>;
|
|
1214
|
-
export declare function messagesSystemMessageToJSON(messagesSystemMessage: MessagesSystemMessage): string;
|
|
1215
|
-
/** @internal */
|
|
1216
|
-
export type Messages$Outbound = MessagesSystemMessage$Outbound | MessagesDeveloperMessage$Outbound | MessagesUserMessage$Outbound | MessagesAssistantMessage$Outbound | MessagesToolMessage$Outbound;
|
|
1217
|
-
/** @internal */
|
|
1218
|
-
export declare const Messages$outboundSchema: z.ZodType<Messages$Outbound, z.ZodTypeDef, Messages>;
|
|
1219
|
-
export declare function messagesToJSON(messages: Messages): string;
|
|
1220
|
-
/** @internal */
|
|
1221
|
-
export type InvokeDeploymentRequestMetadata$Outbound = {
|
|
1222
|
-
file_name?: string | undefined;
|
|
1223
|
-
file_type?: string | undefined;
|
|
1224
|
-
page_number?: number | undefined;
|
|
1225
|
-
};
|
|
1226
|
-
/** @internal */
|
|
1227
|
-
export declare const InvokeDeploymentRequestMetadata$outboundSchema: z.ZodType<InvokeDeploymentRequestMetadata$Outbound, z.ZodTypeDef, InvokeDeploymentRequestMetadata>;
|
|
1228
|
-
export declare function invokeDeploymentRequestMetadataToJSON(invokeDeploymentRequestMetadata: InvokeDeploymentRequestMetadata): string;
|
|
1229
|
-
/** @internal */
|
|
1230
|
-
export type Documents$Outbound = {
|
|
1231
|
-
text: string;
|
|
1232
|
-
metadata?: InvokeDeploymentRequestMetadata$Outbound | undefined;
|
|
1233
|
-
};
|
|
1234
|
-
/** @internal */
|
|
1235
|
-
export declare const Documents$outboundSchema: z.ZodType<Documents$Outbound, z.ZodTypeDef, Documents>;
|
|
1236
|
-
export declare function documentsToJSON(documents: Documents): string;
|
|
1237
|
-
/** @internal */
|
|
1238
|
-
export type InvokeOptions$Outbound = {
|
|
1239
|
-
include_retrievals: boolean;
|
|
1240
|
-
include_usage: boolean;
|
|
1241
|
-
mock_response?: string | undefined;
|
|
1242
|
-
};
|
|
1243
|
-
/** @internal */
|
|
1244
|
-
export declare const InvokeOptions$outboundSchema: z.ZodType<InvokeOptions$Outbound, z.ZodTypeDef, InvokeOptions>;
|
|
1245
|
-
export declare function invokeOptionsToJSON(invokeOptions: InvokeOptions): string;
|
|
1246
|
-
/** @internal */
|
|
1247
|
-
export type Thread$Outbound = {
|
|
1248
|
-
id: string;
|
|
1249
|
-
tags?: Array<string> | undefined;
|
|
1250
|
-
};
|
|
1251
|
-
/** @internal */
|
|
1252
|
-
export declare const Thread$outboundSchema: z.ZodType<Thread$Outbound, z.ZodTypeDef, Thread>;
|
|
1253
|
-
export declare function threadToJSON(thread: Thread): string;
|
|
1254
|
-
/** @internal */
|
|
1255
|
-
export type OrExists$Outbound = {
|
|
1256
|
-
exists: boolean;
|
|
1257
|
-
};
|
|
1258
|
-
/** @internal */
|
|
1259
|
-
export declare const OrExists$outboundSchema: z.ZodType<OrExists$Outbound, z.ZodTypeDef, OrExists>;
|
|
1260
|
-
export declare function orExistsToJSON(orExists: OrExists): string;
|
|
1261
|
-
/** @internal */
|
|
1262
|
-
export type OrNin$Outbound = string | number | boolean;
|
|
1263
|
-
/** @internal */
|
|
1264
|
-
export declare const OrNin$outboundSchema: z.ZodType<OrNin$Outbound, z.ZodTypeDef, OrNin>;
|
|
1265
|
-
export declare function orNinToJSON(orNin: OrNin): string;
|
|
1266
|
-
/** @internal */
|
|
1267
|
-
export type InvokeDeploymentRequestOrNin$Outbound = {
|
|
1268
|
-
nin: Array<string | number | boolean>;
|
|
1269
|
-
};
|
|
1270
|
-
/** @internal */
|
|
1271
|
-
export declare const InvokeDeploymentRequestOrNin$outboundSchema: z.ZodType<InvokeDeploymentRequestOrNin$Outbound, z.ZodTypeDef, InvokeDeploymentRequestOrNin>;
|
|
1272
|
-
export declare function invokeDeploymentRequestOrNinToJSON(invokeDeploymentRequestOrNin: InvokeDeploymentRequestOrNin): string;
|
|
1273
|
-
/** @internal */
|
|
1274
|
-
export type OrIn$Outbound = string | number | boolean;
|
|
1275
|
-
/** @internal */
|
|
1276
|
-
export declare const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn>;
|
|
1277
|
-
export declare function orInToJSON(orIn: OrIn): string;
|
|
1278
|
-
/** @internal */
|
|
1279
|
-
export type InvokeDeploymentRequestOrIn$Outbound = {
|
|
1280
|
-
in: Array<string | number | boolean>;
|
|
1281
|
-
};
|
|
1282
|
-
/** @internal */
|
|
1283
|
-
export declare const InvokeDeploymentRequestOrIn$outboundSchema: z.ZodType<InvokeDeploymentRequestOrIn$Outbound, z.ZodTypeDef, InvokeDeploymentRequestOrIn>;
|
|
1284
|
-
export declare function invokeDeploymentRequestOrInToJSON(invokeDeploymentRequestOrIn: InvokeDeploymentRequestOrIn): string;
|
|
1285
|
-
/** @internal */
|
|
1286
|
-
export type OrLte$Outbound = {
|
|
1287
|
-
lte: number;
|
|
1288
|
-
};
|
|
1289
|
-
/** @internal */
|
|
1290
|
-
export declare const OrLte$outboundSchema: z.ZodType<OrLte$Outbound, z.ZodTypeDef, OrLte>;
|
|
1291
|
-
export declare function orLteToJSON(orLte: OrLte): string;
|
|
1292
|
-
/** @internal */
|
|
1293
|
-
export type OrLt$Outbound = {
|
|
1294
|
-
lt: number;
|
|
1295
|
-
};
|
|
1296
|
-
/** @internal */
|
|
1297
|
-
export declare const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt>;
|
|
1298
|
-
export declare function orLtToJSON(orLt: OrLt): string;
|
|
1299
|
-
/** @internal */
|
|
1300
|
-
export type OrGte$Outbound = {
|
|
1301
|
-
gte: number;
|
|
1302
|
-
};
|
|
1303
|
-
/** @internal */
|
|
1304
|
-
export declare const OrGte$outboundSchema: z.ZodType<OrGte$Outbound, z.ZodTypeDef, OrGte>;
|
|
1305
|
-
export declare function orGteToJSON(orGte: OrGte): string;
|
|
1306
|
-
/** @internal */
|
|
1307
|
-
export type OrGt$Outbound = {
|
|
1308
|
-
gt: number;
|
|
1309
|
-
};
|
|
1310
|
-
/** @internal */
|
|
1311
|
-
export declare const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt>;
|
|
1312
|
-
export declare function orGtToJSON(orGt: OrGt): string;
|
|
1313
|
-
/** @internal */
|
|
1314
|
-
export type OrNe$Outbound = string | number | boolean;
|
|
1315
|
-
/** @internal */
|
|
1316
|
-
export declare const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe>;
|
|
1317
|
-
export declare function orNeToJSON(orNe: OrNe): string;
|
|
1318
|
-
/** @internal */
|
|
1319
|
-
export type InvokeDeploymentRequestOrNe$Outbound = {
|
|
1320
|
-
ne: string | number | boolean;
|
|
1321
|
-
};
|
|
1322
|
-
/** @internal */
|
|
1323
|
-
export declare const InvokeDeploymentRequestOrNe$outboundSchema: z.ZodType<InvokeDeploymentRequestOrNe$Outbound, z.ZodTypeDef, InvokeDeploymentRequestOrNe>;
|
|
1324
|
-
export declare function invokeDeploymentRequestOrNeToJSON(invokeDeploymentRequestOrNe: InvokeDeploymentRequestOrNe): string;
|
|
1325
|
-
/** @internal */
|
|
1326
|
-
export type OrEq$Outbound = string | number | boolean;
|
|
1327
|
-
/** @internal */
|
|
1328
|
-
export declare const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq>;
|
|
1329
|
-
export declare function orEqToJSON(orEq: OrEq): string;
|
|
1330
|
-
/** @internal */
|
|
1331
|
-
export type InvokeDeploymentRequestOrEq$Outbound = {
|
|
1332
|
-
eq: string | number | boolean;
|
|
1333
|
-
};
|
|
1334
|
-
/** @internal */
|
|
1335
|
-
export declare const InvokeDeploymentRequestOrEq$outboundSchema: z.ZodType<InvokeDeploymentRequestOrEq$Outbound, z.ZodTypeDef, InvokeDeploymentRequestOrEq>;
|
|
1336
|
-
export declare function invokeDeploymentRequestOrEqToJSON(invokeDeploymentRequestOrEq: InvokeDeploymentRequestOrEq): string;
|
|
1337
|
-
/** @internal */
|
|
1338
|
-
export type Or$Outbound = InvokeDeploymentRequestOrEq$Outbound | InvokeDeploymentRequestOrNe$Outbound | OrGt$Outbound | OrGte$Outbound | OrLt$Outbound | OrLte$Outbound | InvokeDeploymentRequestOrIn$Outbound | InvokeDeploymentRequestOrNin$Outbound | OrExists$Outbound;
|
|
1339
|
-
/** @internal */
|
|
1340
|
-
export declare const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or>;
|
|
1341
|
-
export declare function orToJSON(or: Or): string;
|
|
1342
|
-
/** @internal */
|
|
1343
|
-
export type KnowledgeFilterOr$Outbound = {
|
|
1344
|
-
or: Array<{
|
|
1345
|
-
[k: string]: InvokeDeploymentRequestOrEq$Outbound | InvokeDeploymentRequestOrNe$Outbound | OrGt$Outbound | OrGte$Outbound | OrLt$Outbound | OrLte$Outbound | InvokeDeploymentRequestOrIn$Outbound | InvokeDeploymentRequestOrNin$Outbound | OrExists$Outbound;
|
|
1346
|
-
}>;
|
|
1347
|
-
};
|
|
1348
|
-
/** @internal */
|
|
1349
|
-
export declare const KnowledgeFilterOr$outboundSchema: z.ZodType<KnowledgeFilterOr$Outbound, z.ZodTypeDef, KnowledgeFilterOr>;
|
|
1350
|
-
export declare function knowledgeFilterOrToJSON(knowledgeFilterOr: KnowledgeFilterOr): string;
|
|
1351
|
-
/** @internal */
|
|
1352
|
-
export type AndExists$Outbound = {
|
|
1353
|
-
exists: boolean;
|
|
1354
|
-
};
|
|
1355
|
-
/** @internal */
|
|
1356
|
-
export declare const AndExists$outboundSchema: z.ZodType<AndExists$Outbound, z.ZodTypeDef, AndExists>;
|
|
1357
|
-
export declare function andExistsToJSON(andExists: AndExists): string;
|
|
1358
|
-
/** @internal */
|
|
1359
|
-
export type AndNin$Outbound = string | number | boolean;
|
|
1360
|
-
/** @internal */
|
|
1361
|
-
export declare const AndNin$outboundSchema: z.ZodType<AndNin$Outbound, z.ZodTypeDef, AndNin>;
|
|
1362
|
-
export declare function andNinToJSON(andNin: AndNin): string;
|
|
1363
|
-
/** @internal */
|
|
1364
|
-
export type InvokeDeploymentRequestAndNin$Outbound = {
|
|
1365
|
-
nin: Array<string | number | boolean>;
|
|
1366
|
-
};
|
|
1367
|
-
/** @internal */
|
|
1368
|
-
export declare const InvokeDeploymentRequestAndNin$outboundSchema: z.ZodType<InvokeDeploymentRequestAndNin$Outbound, z.ZodTypeDef, InvokeDeploymentRequestAndNin>;
|
|
1369
|
-
export declare function invokeDeploymentRequestAndNinToJSON(invokeDeploymentRequestAndNin: InvokeDeploymentRequestAndNin): string;
|
|
1370
|
-
/** @internal */
|
|
1371
|
-
export type AndIn$Outbound = string | number | boolean;
|
|
1372
|
-
/** @internal */
|
|
1373
|
-
export declare const AndIn$outboundSchema: z.ZodType<AndIn$Outbound, z.ZodTypeDef, AndIn>;
|
|
1374
|
-
export declare function andInToJSON(andIn: AndIn): string;
|
|
1375
|
-
/** @internal */
|
|
1376
|
-
export type InvokeDeploymentRequestAndIn$Outbound = {
|
|
1377
|
-
in: Array<string | number | boolean>;
|
|
1378
|
-
};
|
|
1379
|
-
/** @internal */
|
|
1380
|
-
export declare const InvokeDeploymentRequestAndIn$outboundSchema: z.ZodType<InvokeDeploymentRequestAndIn$Outbound, z.ZodTypeDef, InvokeDeploymentRequestAndIn>;
|
|
1381
|
-
export declare function invokeDeploymentRequestAndInToJSON(invokeDeploymentRequestAndIn: InvokeDeploymentRequestAndIn): string;
|
|
1382
|
-
/** @internal */
|
|
1383
|
-
export type AndLte$Outbound = {
|
|
1384
|
-
lte: number;
|
|
1385
|
-
};
|
|
1386
|
-
/** @internal */
|
|
1387
|
-
export declare const AndLte$outboundSchema: z.ZodType<AndLte$Outbound, z.ZodTypeDef, AndLte>;
|
|
1388
|
-
export declare function andLteToJSON(andLte: AndLte): string;
|
|
1389
|
-
/** @internal */
|
|
1390
|
-
export type AndLt$Outbound = {
|
|
1391
|
-
lt: number;
|
|
1392
|
-
};
|
|
1393
|
-
/** @internal */
|
|
1394
|
-
export declare const AndLt$outboundSchema: z.ZodType<AndLt$Outbound, z.ZodTypeDef, AndLt>;
|
|
1395
|
-
export declare function andLtToJSON(andLt: AndLt): string;
|
|
1396
|
-
/** @internal */
|
|
1397
|
-
export type AndGte$Outbound = {
|
|
1398
|
-
gte: number;
|
|
1399
|
-
};
|
|
1400
|
-
/** @internal */
|
|
1401
|
-
export declare const AndGte$outboundSchema: z.ZodType<AndGte$Outbound, z.ZodTypeDef, AndGte>;
|
|
1402
|
-
export declare function andGteToJSON(andGte: AndGte): string;
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export type AndGt$Outbound = {
|
|
1405
|
-
gt: number;
|
|
1406
|
-
};
|
|
1407
|
-
/** @internal */
|
|
1408
|
-
export declare const AndGt$outboundSchema: z.ZodType<AndGt$Outbound, z.ZodTypeDef, AndGt>;
|
|
1409
|
-
export declare function andGtToJSON(andGt: AndGt): string;
|
|
1410
|
-
/** @internal */
|
|
1411
|
-
export type AndNe$Outbound = string | number | boolean;
|
|
1412
|
-
/** @internal */
|
|
1413
|
-
export declare const AndNe$outboundSchema: z.ZodType<AndNe$Outbound, z.ZodTypeDef, AndNe>;
|
|
1414
|
-
export declare function andNeToJSON(andNe: AndNe): string;
|
|
1415
|
-
/** @internal */
|
|
1416
|
-
export type InvokeDeploymentRequestAndNe$Outbound = {
|
|
1417
|
-
ne: string | number | boolean;
|
|
1418
|
-
};
|
|
1419
|
-
/** @internal */
|
|
1420
|
-
export declare const InvokeDeploymentRequestAndNe$outboundSchema: z.ZodType<InvokeDeploymentRequestAndNe$Outbound, z.ZodTypeDef, InvokeDeploymentRequestAndNe>;
|
|
1421
|
-
export declare function invokeDeploymentRequestAndNeToJSON(invokeDeploymentRequestAndNe: InvokeDeploymentRequestAndNe): string;
|
|
1422
|
-
/** @internal */
|
|
1423
|
-
export type AndEq$Outbound = string | number | boolean;
|
|
1424
|
-
/** @internal */
|
|
1425
|
-
export declare const AndEq$outboundSchema: z.ZodType<AndEq$Outbound, z.ZodTypeDef, AndEq>;
|
|
1426
|
-
export declare function andEqToJSON(andEq: AndEq): string;
|
|
1427
|
-
/** @internal */
|
|
1428
|
-
export type InvokeDeploymentRequestAndEq$Outbound = {
|
|
1429
|
-
eq: string | number | boolean;
|
|
1430
|
-
};
|
|
1431
|
-
/** @internal */
|
|
1432
|
-
export declare const InvokeDeploymentRequestAndEq$outboundSchema: z.ZodType<InvokeDeploymentRequestAndEq$Outbound, z.ZodTypeDef, InvokeDeploymentRequestAndEq>;
|
|
1433
|
-
export declare function invokeDeploymentRequestAndEqToJSON(invokeDeploymentRequestAndEq: InvokeDeploymentRequestAndEq): string;
|
|
1434
|
-
/** @internal */
|
|
1435
|
-
export type And$Outbound = InvokeDeploymentRequestAndEq$Outbound | InvokeDeploymentRequestAndNe$Outbound | AndGt$Outbound | AndGte$Outbound | AndLt$Outbound | AndLte$Outbound | InvokeDeploymentRequestAndIn$Outbound | InvokeDeploymentRequestAndNin$Outbound | AndExists$Outbound;
|
|
1436
|
-
/** @internal */
|
|
1437
|
-
export declare const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And>;
|
|
1438
|
-
export declare function andToJSON(and: And): string;
|
|
1439
|
-
/** @internal */
|
|
1440
|
-
export type KnowledgeFilterAnd$Outbound = {
|
|
1441
|
-
and: Array<{
|
|
1442
|
-
[k: string]: InvokeDeploymentRequestAndEq$Outbound | InvokeDeploymentRequestAndNe$Outbound | AndGt$Outbound | AndGte$Outbound | AndLt$Outbound | AndLte$Outbound | InvokeDeploymentRequestAndIn$Outbound | InvokeDeploymentRequestAndNin$Outbound | AndExists$Outbound;
|
|
1443
|
-
}>;
|
|
1444
|
-
};
|
|
1445
|
-
/** @internal */
|
|
1446
|
-
export declare const KnowledgeFilterAnd$outboundSchema: z.ZodType<KnowledgeFilterAnd$Outbound, z.ZodTypeDef, KnowledgeFilterAnd>;
|
|
1447
|
-
export declare function knowledgeFilterAndToJSON(knowledgeFilterAnd: KnowledgeFilterAnd): string;
|
|
1448
|
-
/** @internal */
|
|
1449
|
-
export type Exists$Outbound = {
|
|
1450
|
-
exists: boolean;
|
|
1451
|
-
};
|
|
1452
|
-
/** @internal */
|
|
1453
|
-
export declare const Exists$outboundSchema: z.ZodType<Exists$Outbound, z.ZodTypeDef, Exists>;
|
|
1454
|
-
export declare function existsToJSON(exists: Exists): string;
|
|
1455
|
-
/** @internal */
|
|
1456
|
-
export type Nin$Outbound = string | number | boolean;
|
|
1457
|
-
/** @internal */
|
|
1458
|
-
export declare const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin>;
|
|
1459
|
-
export declare function ninToJSON(nin: Nin): string;
|
|
1460
|
-
/** @internal */
|
|
1461
|
-
export type OneNin$Outbound = {
|
|
1462
|
-
nin: Array<string | number | boolean>;
|
|
1463
|
-
};
|
|
1464
|
-
/** @internal */
|
|
1465
|
-
export declare const OneNin$outboundSchema: z.ZodType<OneNin$Outbound, z.ZodTypeDef, OneNin>;
|
|
1466
|
-
export declare function oneNinToJSON(oneNin: OneNin): string;
|
|
1467
|
-
/** @internal */
|
|
1468
|
-
export type In$Outbound = string | number | boolean;
|
|
1469
|
-
/** @internal */
|
|
1470
|
-
export declare const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In>;
|
|
1471
|
-
export declare function inToJSON(value: In): string;
|
|
1472
|
-
/** @internal */
|
|
1473
|
-
export type OneIn$Outbound = {
|
|
1474
|
-
in: Array<string | number | boolean>;
|
|
1475
|
-
};
|
|
1476
|
-
/** @internal */
|
|
1477
|
-
export declare const OneIn$outboundSchema: z.ZodType<OneIn$Outbound, z.ZodTypeDef, OneIn>;
|
|
1478
|
-
export declare function oneInToJSON(oneIn: OneIn): string;
|
|
1479
|
-
/** @internal */
|
|
1480
|
-
export type Lte$Outbound = {
|
|
1481
|
-
lte: number;
|
|
1482
|
-
};
|
|
1483
|
-
/** @internal */
|
|
1484
|
-
export declare const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte>;
|
|
1485
|
-
export declare function lteToJSON(lte: Lte): string;
|
|
1486
|
-
/** @internal */
|
|
1487
|
-
export type Lt$Outbound = {
|
|
1488
|
-
lt: number;
|
|
1489
|
-
};
|
|
1490
|
-
/** @internal */
|
|
1491
|
-
export declare const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt>;
|
|
1492
|
-
export declare function ltToJSON(lt: Lt): string;
|
|
1493
|
-
/** @internal */
|
|
1494
|
-
export type Gte$Outbound = {
|
|
1495
|
-
gte: number;
|
|
1496
|
-
};
|
|
1497
|
-
/** @internal */
|
|
1498
|
-
export declare const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte>;
|
|
1499
|
-
export declare function gteToJSON(gte: Gte): string;
|
|
1500
|
-
/** @internal */
|
|
1501
|
-
export type Gt$Outbound = {
|
|
1502
|
-
gt: number;
|
|
1503
|
-
};
|
|
1504
|
-
/** @internal */
|
|
1505
|
-
export declare const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt>;
|
|
1506
|
-
export declare function gtToJSON(gt: Gt): string;
|
|
1507
|
-
/** @internal */
|
|
1508
|
-
export type Ne$Outbound = string | number | boolean;
|
|
1509
|
-
/** @internal */
|
|
1510
|
-
export declare const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne>;
|
|
1511
|
-
export declare function neToJSON(ne: Ne): string;
|
|
1512
|
-
/** @internal */
|
|
1513
|
-
export type OneNe$Outbound = {
|
|
1514
|
-
ne: string | number | boolean;
|
|
1515
|
-
};
|
|
1516
|
-
/** @internal */
|
|
1517
|
-
export declare const OneNe$outboundSchema: z.ZodType<OneNe$Outbound, z.ZodTypeDef, OneNe>;
|
|
1518
|
-
export declare function oneNeToJSON(oneNe: OneNe): string;
|
|
1519
|
-
/** @internal */
|
|
1520
|
-
export type Eq$Outbound = string | number | boolean;
|
|
1521
|
-
/** @internal */
|
|
1522
|
-
export declare const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq>;
|
|
1523
|
-
export declare function eqToJSON(eq: Eq): string;
|
|
1524
|
-
/** @internal */
|
|
1525
|
-
export type OneEq$Outbound = {
|
|
1526
|
-
eq: string | number | boolean;
|
|
1527
|
-
};
|
|
1528
|
-
/** @internal */
|
|
1529
|
-
export declare const OneEq$outboundSchema: z.ZodType<OneEq$Outbound, z.ZodTypeDef, OneEq>;
|
|
1530
|
-
export declare function oneEqToJSON(oneEq: OneEq): string;
|
|
1531
|
-
/** @internal */
|
|
1532
|
-
export type One$Outbound = OneEq$Outbound | OneNe$Outbound | Gt$Outbound | Gte$Outbound | Lt$Outbound | Lte$Outbound | OneIn$Outbound | OneNin$Outbound | Exists$Outbound;
|
|
1533
|
-
/** @internal */
|
|
1534
|
-
export declare const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
|
|
1535
|
-
export declare function oneToJSON(one: One): string;
|
|
1536
|
-
/** @internal */
|
|
1537
|
-
export type KnowledgeFilter$Outbound = KnowledgeFilterAnd$Outbound | KnowledgeFilterOr$Outbound | {
|
|
1538
|
-
[k: string]: OneEq$Outbound | OneNe$Outbound | Gt$Outbound | Gte$Outbound | Lt$Outbound | Lte$Outbound | OneIn$Outbound | OneNin$Outbound | Exists$Outbound;
|
|
1539
|
-
};
|
|
1540
|
-
/** @internal */
|
|
1541
|
-
export declare const KnowledgeFilter$outboundSchema: z.ZodType<KnowledgeFilter$Outbound, z.ZodTypeDef, KnowledgeFilter>;
|
|
1542
|
-
export declare function knowledgeFilterToJSON(knowledgeFilter: KnowledgeFilter): string;
|
|
1543
|
-
/** @internal */
|
|
1544
|
-
export type InvokeDeploymentRequest$Outbound = {
|
|
1545
|
-
key: string;
|
|
1546
|
-
stream: boolean;
|
|
1547
|
-
inputs?: {
|
|
1548
|
-
[k: string]: any;
|
|
1549
|
-
} | undefined;
|
|
1550
|
-
context?: {
|
|
1551
|
-
[k: string]: any;
|
|
1552
|
-
} | undefined;
|
|
1553
|
-
prefix_messages?: Array<SystemMessage$Outbound | DeveloperMessage$Outbound | UserMessage$Outbound | AssistantMessage$Outbound | ToolMessage$Outbound> | undefined;
|
|
1554
|
-
messages?: Array<MessagesSystemMessage$Outbound | MessagesDeveloperMessage$Outbound | MessagesUserMessage$Outbound | MessagesAssistantMessage$Outbound | MessagesToolMessage$Outbound> | undefined;
|
|
1555
|
-
identity?: PublicIdentity$Outbound | undefined;
|
|
1556
|
-
file_ids?: Array<string> | undefined;
|
|
1557
|
-
metadata?: {
|
|
1558
|
-
[k: string]: any;
|
|
1559
|
-
} | undefined;
|
|
1560
|
-
extra_params?: {
|
|
1561
|
-
[k: string]: any;
|
|
1562
|
-
} | undefined;
|
|
1563
|
-
documents?: Array<Documents$Outbound> | undefined;
|
|
1564
|
-
invoke_options?: InvokeOptions$Outbound | undefined;
|
|
1565
|
-
thread?: Thread$Outbound | undefined;
|
|
1566
|
-
knowledge_filter?: KnowledgeFilterAnd$Outbound | KnowledgeFilterOr$Outbound | {
|
|
1567
|
-
[k: string]: OneEq$Outbound | OneNe$Outbound | Gt$Outbound | Gte$Outbound | Lt$Outbound | Lte$Outbound | OneIn$Outbound | OneNin$Outbound | Exists$Outbound;
|
|
1568
|
-
} | undefined;
|
|
1569
|
-
};
|
|
1570
|
-
/** @internal */
|
|
1571
|
-
export declare const InvokeDeploymentRequest$outboundSchema: z.ZodType<InvokeDeploymentRequest$Outbound, z.ZodTypeDef, InvokeDeploymentRequest>;
|
|
1572
|
-
export declare function invokeDeploymentRequestToJSON(invokeDeploymentRequest: InvokeDeploymentRequest): string;
|
|
1573
|
-
//# sourceMappingURL=invokedeploymentrequest.d.ts.map
|