@orq-ai/node 4.1.0-rc.33 → 4.1.0-rc.35
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 +27 -23
- package/bin/mcp-server.js +6400 -6141
- package/bin/mcp-server.js.map +66 -58
- package/examples/package-lock.json +1 -1
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +39 -5
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +52 -8
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +13 -11
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
- package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigdisabledschema.js +58 -0
- package/models/components/thinkingconfigdisabledschema.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +49 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigenabledschema.js +84 -0
- package/models/components/thinkingconfigenabledschema.js.map +1 -0
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +17 -204
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +75 -194
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -166
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +32 -227
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +62 -8
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +94 -10
- package/models/operations/createconversation.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +10 -10
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +13 -13
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +179 -0
- package/models/operations/generateconversationname.js.map +1 -0
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +9 -102
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +38 -97
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +9 -102
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +38 -97
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +39 -5
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +53 -8
- package/models/operations/retrieveconversation.js.map +1 -1
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +8 -102
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +41 -104
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +8 -102
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +41 -103
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +17 -204
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +75 -193
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +63 -6
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +93 -9
- package/models/operations/updateconversation.js.map +1 -1
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/conversations.d.ts +7 -0
- package/sdk/conversations.d.ts.map +1 -1
- package/sdk/conversations.js +10 -0
- package/sdk/conversations.js.map +1 -1
- package/src/funcs/conversationsGenerateName.ts +194 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/conversationresponse.ts +100 -12
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/invokedeploymentrequest.ts +25 -17
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
- package/src/models/components/thinkingconfigenabledschema.ts +106 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createagentrequest.ts +123 -369
- package/src/models/operations/createagentresponserequest.ts +71 -513
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +192 -17
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +23 -25
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +341 -0
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/listagents.ts +63 -186
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +61 -194
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +107 -12
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +64 -194
- package/src/models/operations/streamrunagent.ts +62 -201
- package/src/models/operations/updateagent.ts +123 -379
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +192 -14
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/conversations.ts +20 -0
|
@@ -102,6 +102,12 @@ export type Memory = {
|
|
|
102
102
|
*/
|
|
103
103
|
entityId: string;
|
|
104
104
|
};
|
|
105
|
+
export type Conversation = {
|
|
106
|
+
/**
|
|
107
|
+
* Unique ULID identifier for the conversation, prefixed with "conv_". Used to link agent executions to a specific conversation thread.
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
};
|
|
105
111
|
export type CreateAgentResponseRequestRequestBody = {
|
|
106
112
|
/**
|
|
107
113
|
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
@@ -143,6 +149,7 @@ export type CreateAgentResponseRequestRequestBody = {
|
|
|
143
149
|
* If true, returns Server-Sent Events (SSE) streaming response with real-time events. If false (default), returns standard JSON response.
|
|
144
150
|
*/
|
|
145
151
|
stream?: boolean | undefined;
|
|
152
|
+
conversation?: Conversation | undefined;
|
|
146
153
|
};
|
|
147
154
|
export type CreateAgentResponseRequestRequest = {
|
|
148
155
|
/**
|
|
@@ -154,94 +161,13 @@ export type CreateAgentResponseRequestRequest = {
|
|
|
154
161
|
/**
|
|
155
162
|
* Agent response successfully created and completed. Returns the full conversation including all messages, tool interactions, model used, and token usage statistics. In background mode, returns immediately with initial task details. In streaming mode, returns Server-Sent Events (SSE) with real-time events.
|
|
156
163
|
*/
|
|
157
|
-
export type
|
|
164
|
+
export type CreateAgentResponseRequestResponseBody = {
|
|
158
165
|
/**
|
|
159
166
|
* Union of all possible streaming events. Each event has a type field for discrimination.
|
|
160
167
|
*/
|
|
161
168
|
data?: components.ResponseStreamingEvent | undefined;
|
|
162
169
|
};
|
|
163
|
-
export
|
|
164
|
-
readonly User: "user";
|
|
165
|
-
readonly Agent: "agent";
|
|
166
|
-
readonly Tool: "tool";
|
|
167
|
-
readonly System: "system";
|
|
168
|
-
};
|
|
169
|
-
export type CreateAgentResponseRequestAgentsResponsesRole = ClosedEnum<typeof CreateAgentResponseRequestAgentsResponsesRole>;
|
|
170
|
-
export type Parts = components.TextPart | components.DataPart | components.FilePart | components.ToolCallPart | components.ToolResultPart;
|
|
171
|
-
export type Output = {
|
|
172
|
-
messageId: string;
|
|
173
|
-
role: CreateAgentResponseRequestAgentsResponsesRole;
|
|
174
|
-
parts: Array<components.TextPart | components.DataPart | components.FilePart | components.ToolCallPart | components.ToolResultPart>;
|
|
175
|
-
metadata?: {
|
|
176
|
-
[k: string]: any;
|
|
177
|
-
} | undefined;
|
|
178
|
-
};
|
|
179
|
-
export type PromptTokensDetails = {
|
|
180
|
-
cachedTokens?: number | null | undefined;
|
|
181
|
-
cacheCreationTokens?: number | null | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* The number of audio input tokens consumed by the request.
|
|
184
|
-
*/
|
|
185
|
-
audioTokens?: number | null | undefined;
|
|
186
|
-
};
|
|
187
|
-
export type CompletionTokensDetails = {
|
|
188
|
-
reasoningTokens?: number | null | undefined;
|
|
189
|
-
acceptedPredictionTokens?: number | null | undefined;
|
|
190
|
-
rejectedPredictionTokens?: number | null | undefined;
|
|
191
|
-
/**
|
|
192
|
-
* The number of audio output tokens produced by the response.
|
|
193
|
-
*/
|
|
194
|
-
audioTokens?: number | null | undefined;
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* Token usage from the agent execution
|
|
198
|
-
*/
|
|
199
|
-
export type CreateAgentResponseRequestUsage = {
|
|
200
|
-
/**
|
|
201
|
-
* Number of tokens in the generated completion.
|
|
202
|
-
*/
|
|
203
|
-
completionTokens?: number | undefined;
|
|
204
|
-
/**
|
|
205
|
-
* Number of tokens in the prompt.
|
|
206
|
-
*/
|
|
207
|
-
promptTokens?: number | undefined;
|
|
208
|
-
/**
|
|
209
|
-
* Total number of tokens used in the request (prompt + completion).
|
|
210
|
-
*/
|
|
211
|
-
totalTokens?: number | undefined;
|
|
212
|
-
promptTokensDetails?: PromptTokensDetails | null | undefined;
|
|
213
|
-
completionTokensDetails?: CompletionTokensDetails | null | undefined;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Agent response successfully created and completed. Returns the full conversation including all messages, tool interactions, model used, and token usage statistics. In background mode, returns immediately with initial task details. In streaming mode, returns Server-Sent Events (SSE) with real-time events.
|
|
217
|
-
*/
|
|
218
|
-
export type CreateAgentResponseRequestResponseBody = {
|
|
219
|
-
/**
|
|
220
|
-
* The unique response ID
|
|
221
|
-
*/
|
|
222
|
-
id: string;
|
|
223
|
-
/**
|
|
224
|
-
* The agent execution task ID
|
|
225
|
-
*/
|
|
226
|
-
taskId: string;
|
|
227
|
-
/**
|
|
228
|
-
* Array of messages from the agent execution
|
|
229
|
-
*/
|
|
230
|
-
output: Array<Output>;
|
|
231
|
-
/**
|
|
232
|
-
* ISO timestamp of response creation
|
|
233
|
-
*/
|
|
234
|
-
createdAt: string;
|
|
235
|
-
/**
|
|
236
|
-
* Model used in provider/model format
|
|
237
|
-
*/
|
|
238
|
-
model: string;
|
|
239
|
-
/**
|
|
240
|
-
* Token usage from the agent execution
|
|
241
|
-
*/
|
|
242
|
-
usage?: CreateAgentResponseRequestUsage | null | undefined;
|
|
243
|
-
};
|
|
244
|
-
export type CreateAgentResponseRequestResponse = CreateAgentResponseRequestResponseBody | EventStream<CreateAgentResponseRequestAgentsResponsesResponseBody>;
|
|
170
|
+
export type CreateAgentResponseRequestResponse = components.CreateAgentResponse | EventStream<CreateAgentResponseRequestResponseBody>;
|
|
245
171
|
/** @internal */
|
|
246
172
|
export declare const RoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof RoleToolMessage>;
|
|
247
173
|
/** @internal */
|
|
@@ -317,6 +243,16 @@ export declare const Memory$outboundSchema: z.ZodType<Memory$Outbound, z.ZodType
|
|
|
317
243
|
export declare function memoryToJSON(memory: Memory): string;
|
|
318
244
|
export declare function memoryFromJSON(jsonString: string): SafeParseResult<Memory, SDKValidationError>;
|
|
319
245
|
/** @internal */
|
|
246
|
+
export declare const Conversation$inboundSchema: z.ZodType<Conversation, z.ZodTypeDef, unknown>;
|
|
247
|
+
/** @internal */
|
|
248
|
+
export type Conversation$Outbound = {
|
|
249
|
+
_id: string;
|
|
250
|
+
};
|
|
251
|
+
/** @internal */
|
|
252
|
+
export declare const Conversation$outboundSchema: z.ZodType<Conversation$Outbound, z.ZodTypeDef, Conversation>;
|
|
253
|
+
export declare function conversationToJSON(conversation: Conversation): string;
|
|
254
|
+
export declare function conversationFromJSON(jsonString: string): SafeParseResult<Conversation, SDKValidationError>;
|
|
255
|
+
/** @internal */
|
|
320
256
|
export declare const CreateAgentResponseRequestRequestBody$inboundSchema: z.ZodType<CreateAgentResponseRequestRequestBody, z.ZodTypeDef, unknown>;
|
|
321
257
|
/** @internal */
|
|
322
258
|
export type CreateAgentResponseRequestRequestBody$Outbound = {
|
|
@@ -333,6 +269,7 @@ export type CreateAgentResponseRequestRequestBody$Outbound = {
|
|
|
333
269
|
} | undefined;
|
|
334
270
|
background: boolean;
|
|
335
271
|
stream: boolean;
|
|
272
|
+
conversation?: Conversation$Outbound | undefined;
|
|
336
273
|
};
|
|
337
274
|
/** @internal */
|
|
338
275
|
export declare const CreateAgentResponseRequestRequestBody$outboundSchema: z.ZodType<CreateAgentResponseRequestRequestBody$Outbound, z.ZodTypeDef, CreateAgentResponseRequestRequestBody>;
|
|
@@ -350,91 +287,10 @@ export declare const CreateAgentResponseRequestRequest$outboundSchema: z.ZodType
|
|
|
350
287
|
export declare function createAgentResponseRequestRequestToJSON(createAgentResponseRequestRequest: CreateAgentResponseRequestRequest): string;
|
|
351
288
|
export declare function createAgentResponseRequestRequestFromJSON(jsonString: string): SafeParseResult<CreateAgentResponseRequestRequest, SDKValidationError>;
|
|
352
289
|
/** @internal */
|
|
353
|
-
export declare const CreateAgentResponseRequestAgentsResponsesResponseBody$inboundSchema: z.ZodType<CreateAgentResponseRequestAgentsResponsesResponseBody, z.ZodTypeDef, unknown>;
|
|
354
|
-
/** @internal */
|
|
355
|
-
export type CreateAgentResponseRequestAgentsResponsesResponseBody$Outbound = {
|
|
356
|
-
data?: components.ResponseStreamingEvent$Outbound | undefined;
|
|
357
|
-
};
|
|
358
|
-
/** @internal */
|
|
359
|
-
export declare const CreateAgentResponseRequestAgentsResponsesResponseBody$outboundSchema: z.ZodType<CreateAgentResponseRequestAgentsResponsesResponseBody$Outbound, z.ZodTypeDef, CreateAgentResponseRequestAgentsResponsesResponseBody>;
|
|
360
|
-
export declare function createAgentResponseRequestAgentsResponsesResponseBodyToJSON(createAgentResponseRequestAgentsResponsesResponseBody: CreateAgentResponseRequestAgentsResponsesResponseBody): string;
|
|
361
|
-
export declare function createAgentResponseRequestAgentsResponsesResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateAgentResponseRequestAgentsResponsesResponseBody, SDKValidationError>;
|
|
362
|
-
/** @internal */
|
|
363
|
-
export declare const CreateAgentResponseRequestAgentsResponsesRole$inboundSchema: z.ZodNativeEnum<typeof CreateAgentResponseRequestAgentsResponsesRole>;
|
|
364
|
-
/** @internal */
|
|
365
|
-
export declare const CreateAgentResponseRequestAgentsResponsesRole$outboundSchema: z.ZodNativeEnum<typeof CreateAgentResponseRequestAgentsResponsesRole>;
|
|
366
|
-
/** @internal */
|
|
367
|
-
export declare const Parts$inboundSchema: z.ZodType<Parts, z.ZodTypeDef, unknown>;
|
|
368
|
-
/** @internal */
|
|
369
|
-
export type Parts$Outbound = components.TextPart$Outbound | components.DataPart$Outbound | components.FilePart$Outbound | components.ToolCallPart$Outbound | components.ToolResultPart$Outbound;
|
|
370
|
-
/** @internal */
|
|
371
|
-
export declare const Parts$outboundSchema: z.ZodType<Parts$Outbound, z.ZodTypeDef, Parts>;
|
|
372
|
-
export declare function partsToJSON(parts: Parts): string;
|
|
373
|
-
export declare function partsFromJSON(jsonString: string): SafeParseResult<Parts, SDKValidationError>;
|
|
374
|
-
/** @internal */
|
|
375
|
-
export declare const Output$inboundSchema: z.ZodType<Output, z.ZodTypeDef, unknown>;
|
|
376
|
-
/** @internal */
|
|
377
|
-
export type Output$Outbound = {
|
|
378
|
-
messageId: string;
|
|
379
|
-
role: string;
|
|
380
|
-
parts: Array<components.TextPart$Outbound | components.DataPart$Outbound | components.FilePart$Outbound | components.ToolCallPart$Outbound | components.ToolResultPart$Outbound>;
|
|
381
|
-
metadata?: {
|
|
382
|
-
[k: string]: any;
|
|
383
|
-
} | undefined;
|
|
384
|
-
};
|
|
385
|
-
/** @internal */
|
|
386
|
-
export declare const Output$outboundSchema: z.ZodType<Output$Outbound, z.ZodTypeDef, Output>;
|
|
387
|
-
export declare function outputToJSON(output: Output): string;
|
|
388
|
-
export declare function outputFromJSON(jsonString: string): SafeParseResult<Output, SDKValidationError>;
|
|
389
|
-
/** @internal */
|
|
390
|
-
export declare const PromptTokensDetails$inboundSchema: z.ZodType<PromptTokensDetails, z.ZodTypeDef, unknown>;
|
|
391
|
-
/** @internal */
|
|
392
|
-
export type PromptTokensDetails$Outbound = {
|
|
393
|
-
cached_tokens?: number | null | undefined;
|
|
394
|
-
cache_creation_tokens?: number | null | undefined;
|
|
395
|
-
audio_tokens?: number | null | undefined;
|
|
396
|
-
};
|
|
397
|
-
/** @internal */
|
|
398
|
-
export declare const PromptTokensDetails$outboundSchema: z.ZodType<PromptTokensDetails$Outbound, z.ZodTypeDef, PromptTokensDetails>;
|
|
399
|
-
export declare function promptTokensDetailsToJSON(promptTokensDetails: PromptTokensDetails): string;
|
|
400
|
-
export declare function promptTokensDetailsFromJSON(jsonString: string): SafeParseResult<PromptTokensDetails, SDKValidationError>;
|
|
401
|
-
/** @internal */
|
|
402
|
-
export declare const CompletionTokensDetails$inboundSchema: z.ZodType<CompletionTokensDetails, z.ZodTypeDef, unknown>;
|
|
403
|
-
/** @internal */
|
|
404
|
-
export type CompletionTokensDetails$Outbound = {
|
|
405
|
-
reasoning_tokens?: number | null | undefined;
|
|
406
|
-
accepted_prediction_tokens?: number | null | undefined;
|
|
407
|
-
rejected_prediction_tokens?: number | null | undefined;
|
|
408
|
-
audio_tokens?: number | null | undefined;
|
|
409
|
-
};
|
|
410
|
-
/** @internal */
|
|
411
|
-
export declare const CompletionTokensDetails$outboundSchema: z.ZodType<CompletionTokensDetails$Outbound, z.ZodTypeDef, CompletionTokensDetails>;
|
|
412
|
-
export declare function completionTokensDetailsToJSON(completionTokensDetails: CompletionTokensDetails): string;
|
|
413
|
-
export declare function completionTokensDetailsFromJSON(jsonString: string): SafeParseResult<CompletionTokensDetails, SDKValidationError>;
|
|
414
|
-
/** @internal */
|
|
415
|
-
export declare const CreateAgentResponseRequestUsage$inboundSchema: z.ZodType<CreateAgentResponseRequestUsage, z.ZodTypeDef, unknown>;
|
|
416
|
-
/** @internal */
|
|
417
|
-
export type CreateAgentResponseRequestUsage$Outbound = {
|
|
418
|
-
completion_tokens?: number | undefined;
|
|
419
|
-
prompt_tokens?: number | undefined;
|
|
420
|
-
total_tokens?: number | undefined;
|
|
421
|
-
prompt_tokens_details?: PromptTokensDetails$Outbound | null | undefined;
|
|
422
|
-
completion_tokens_details?: CompletionTokensDetails$Outbound | null | undefined;
|
|
423
|
-
};
|
|
424
|
-
/** @internal */
|
|
425
|
-
export declare const CreateAgentResponseRequestUsage$outboundSchema: z.ZodType<CreateAgentResponseRequestUsage$Outbound, z.ZodTypeDef, CreateAgentResponseRequestUsage>;
|
|
426
|
-
export declare function createAgentResponseRequestUsageToJSON(createAgentResponseRequestUsage: CreateAgentResponseRequestUsage): string;
|
|
427
|
-
export declare function createAgentResponseRequestUsageFromJSON(jsonString: string): SafeParseResult<CreateAgentResponseRequestUsage, SDKValidationError>;
|
|
428
|
-
/** @internal */
|
|
429
290
|
export declare const CreateAgentResponseRequestResponseBody$inboundSchema: z.ZodType<CreateAgentResponseRequestResponseBody, z.ZodTypeDef, unknown>;
|
|
430
291
|
/** @internal */
|
|
431
292
|
export type CreateAgentResponseRequestResponseBody$Outbound = {
|
|
432
|
-
|
|
433
|
-
task_id: string;
|
|
434
|
-
output: Array<Output$Outbound>;
|
|
435
|
-
created_at: string;
|
|
436
|
-
model: string;
|
|
437
|
-
usage?: CreateAgentResponseRequestUsage$Outbound | null | undefined;
|
|
293
|
+
data?: components.ResponseStreamingEvent$Outbound | undefined;
|
|
438
294
|
};
|
|
439
295
|
/** @internal */
|
|
440
296
|
export declare const CreateAgentResponseRequestResponseBody$outboundSchema: z.ZodType<CreateAgentResponseRequestResponseBody$Outbound, z.ZodTypeDef, CreateAgentResponseRequestResponseBody>;
|
|
@@ -443,7 +299,7 @@ export declare function createAgentResponseRequestResponseBodyFromJSON(jsonStrin
|
|
|
443
299
|
/** @internal */
|
|
444
300
|
export declare const CreateAgentResponseRequestResponse$inboundSchema: z.ZodType<CreateAgentResponseRequestResponse, z.ZodTypeDef, unknown>;
|
|
445
301
|
/** @internal */
|
|
446
|
-
export type CreateAgentResponseRequestResponse$Outbound =
|
|
302
|
+
export type CreateAgentResponseRequestResponse$Outbound = components.CreateAgentResponse$Outbound | never;
|
|
447
303
|
/** @internal */
|
|
448
304
|
export declare const CreateAgentResponseRequestResponse$outboundSchema: z.ZodType<CreateAgentResponseRequestResponse$Outbound, z.ZodTypeDef, CreateAgentResponseRequestResponse>;
|
|
449
305
|
export declare function createAgentResponseRequestResponseToJSON(createAgentResponseRequestResponse: CreateAgentResponseRequestResponse): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createagentresponserequest.d.ts","sourceRoot":"","sources":["../../src/models/operations/createagentresponserequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9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EF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,+CAA+C,EAC/C,CAAC,CAAC,UAAU,EACZ,sCAAsC,CAgBtC,CAAC;AAEH,wBAAgB,4CAA4C,CAC1D,sCAAsC,EACpC,sCAAsC,GACvC,MAAM,CAMR;AACD,wBAAgB,8CAA8C,CAC5D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sCAAsC,EAAE,kBAAkB,CAAC,CAO7E;AAED,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,2CAA2C,GACnD,+CAA+C,GAC/C,KAAK,CAAC;AAEV,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,kCAAkC,CAIlC,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,kCAAkC,EAAE,kCAAkC,GACrE,MAAM,CAMR;AACD,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAOzE"}
|
|
1
|
+
{"version":3,"file":"createagentresponserequest.d.ts","sourceRoot":"","sources":["../../src/models/operations/createagentresponserequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,e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function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreateAgentResponseRequestResponse$outboundSchema = exports.CreateAgentResponseRequestResponse$inboundSchema = exports.CreateAgentResponseRequestResponseBody$outboundSchema = exports.CreateAgentResponseRequestResponseBody$inboundSchema = exports.
|
|
39
|
+
exports.CreateAgentResponseRequestResponse$outboundSchema = exports.CreateAgentResponseRequestResponse$inboundSchema = exports.CreateAgentResponseRequestResponseBody$outboundSchema = exports.CreateAgentResponseRequestResponseBody$inboundSchema = exports.CreateAgentResponseRequestRequest$outboundSchema = exports.CreateAgentResponseRequestRequest$inboundSchema = exports.CreateAgentResponseRequestRequestBody$outboundSchema = exports.CreateAgentResponseRequestRequestBody$inboundSchema = exports.Conversation$outboundSchema = exports.Conversation$inboundSchema = exports.Memory$outboundSchema = exports.Memory$inboundSchema = exports.CreateAgentResponseRequestThread$outboundSchema = exports.CreateAgentResponseRequestThread$inboundSchema = exports.Contact$outboundSchema = exports.Contact$inboundSchema = exports.A2AMessage$outboundSchema = exports.A2AMessage$inboundSchema = exports.PublicMessagePart$outboundSchema = exports.PublicMessagePart$inboundSchema = exports.CreateAgentResponseRequestRole$outboundSchema = exports.CreateAgentResponseRequestRole$inboundSchema = exports.RoleUserMessage$outboundSchema = exports.RoleUserMessage$inboundSchema = exports.RoleToolMessage$outboundSchema = exports.RoleToolMessage$inboundSchema = exports.RoleUserMessage = exports.RoleToolMessage = void 0;
|
|
40
40
|
exports.createAgentResponseRequestRoleToJSON = createAgentResponseRequestRoleToJSON;
|
|
41
41
|
exports.createAgentResponseRequestRoleFromJSON = createAgentResponseRequestRoleFromJSON;
|
|
42
42
|
exports.publicMessagePartToJSON = publicMessagePartToJSON;
|
|
@@ -49,22 +49,12 @@ exports.createAgentResponseRequestThreadToJSON = createAgentResponseRequestThrea
|
|
|
49
49
|
exports.createAgentResponseRequestThreadFromJSON = createAgentResponseRequestThreadFromJSON;
|
|
50
50
|
exports.memoryToJSON = memoryToJSON;
|
|
51
51
|
exports.memoryFromJSON = memoryFromJSON;
|
|
52
|
+
exports.conversationToJSON = conversationToJSON;
|
|
53
|
+
exports.conversationFromJSON = conversationFromJSON;
|
|
52
54
|
exports.createAgentResponseRequestRequestBodyToJSON = createAgentResponseRequestRequestBodyToJSON;
|
|
53
55
|
exports.createAgentResponseRequestRequestBodyFromJSON = createAgentResponseRequestRequestBodyFromJSON;
|
|
54
56
|
exports.createAgentResponseRequestRequestToJSON = createAgentResponseRequestRequestToJSON;
|
|
55
57
|
exports.createAgentResponseRequestRequestFromJSON = createAgentResponseRequestRequestFromJSON;
|
|
56
|
-
exports.createAgentResponseRequestAgentsResponsesResponseBodyToJSON = createAgentResponseRequestAgentsResponsesResponseBodyToJSON;
|
|
57
|
-
exports.createAgentResponseRequestAgentsResponsesResponseBodyFromJSON = createAgentResponseRequestAgentsResponsesResponseBodyFromJSON;
|
|
58
|
-
exports.partsToJSON = partsToJSON;
|
|
59
|
-
exports.partsFromJSON = partsFromJSON;
|
|
60
|
-
exports.outputToJSON = outputToJSON;
|
|
61
|
-
exports.outputFromJSON = outputFromJSON;
|
|
62
|
-
exports.promptTokensDetailsToJSON = promptTokensDetailsToJSON;
|
|
63
|
-
exports.promptTokensDetailsFromJSON = promptTokensDetailsFromJSON;
|
|
64
|
-
exports.completionTokensDetailsToJSON = completionTokensDetailsToJSON;
|
|
65
|
-
exports.completionTokensDetailsFromJSON = completionTokensDetailsFromJSON;
|
|
66
|
-
exports.createAgentResponseRequestUsageToJSON = createAgentResponseRequestUsageToJSON;
|
|
67
|
-
exports.createAgentResponseRequestUsageFromJSON = createAgentResponseRequestUsageFromJSON;
|
|
68
58
|
exports.createAgentResponseRequestResponseBodyToJSON = createAgentResponseRequestResponseBodyToJSON;
|
|
69
59
|
exports.createAgentResponseRequestResponseBodyFromJSON = createAgentResponseRequestResponseBodyFromJSON;
|
|
70
60
|
exports.createAgentResponseRequestResponseToJSON = createAgentResponseRequestResponseToJSON;
|
|
@@ -86,12 +76,6 @@ exports.RoleToolMessage = {
|
|
|
86
76
|
exports.RoleUserMessage = {
|
|
87
77
|
User: "user",
|
|
88
78
|
};
|
|
89
|
-
exports.CreateAgentResponseRequestAgentsResponsesRole = {
|
|
90
|
-
User: "user",
|
|
91
|
-
Agent: "agent",
|
|
92
|
-
Tool: "tool",
|
|
93
|
-
System: "system",
|
|
94
|
-
};
|
|
95
79
|
/** @internal */
|
|
96
80
|
exports.RoleToolMessage$inboundSchema = z.nativeEnum(exports.RoleToolMessage);
|
|
97
81
|
/** @internal */
|
|
@@ -231,6 +215,28 @@ function memoryFromJSON(jsonString) {
|
|
|
231
215
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Memory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Memory' from JSON`);
|
|
232
216
|
}
|
|
233
217
|
/** @internal */
|
|
218
|
+
exports.Conversation$inboundSchema = z.object({
|
|
219
|
+
_id: z.string(),
|
|
220
|
+
}).transform((v) => {
|
|
221
|
+
return (0, primitives_js_1.remap)(v, {
|
|
222
|
+
"_id": "id",
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
/** @internal */
|
|
226
|
+
exports.Conversation$outboundSchema = z.object({
|
|
227
|
+
id: z.string(),
|
|
228
|
+
}).transform((v) => {
|
|
229
|
+
return (0, primitives_js_1.remap)(v, {
|
|
230
|
+
id: "_id",
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
function conversationToJSON(conversation) {
|
|
234
|
+
return JSON.stringify(exports.Conversation$outboundSchema.parse(conversation));
|
|
235
|
+
}
|
|
236
|
+
function conversationFromJSON(jsonString) {
|
|
237
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Conversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Conversation' from JSON`);
|
|
238
|
+
}
|
|
239
|
+
/** @internal */
|
|
234
240
|
exports.CreateAgentResponseRequestRequestBody$inboundSchema = z.object({
|
|
235
241
|
task_id: z.string().optional(),
|
|
236
242
|
message: z.lazy(() => exports.A2AMessage$inboundSchema),
|
|
@@ -242,6 +248,7 @@ exports.CreateAgentResponseRequestRequestBody$inboundSchema = z.object({
|
|
|
242
248
|
metadata: z.record(z.any()).optional(),
|
|
243
249
|
background: z.boolean().default(false),
|
|
244
250
|
stream: z.boolean().default(false),
|
|
251
|
+
conversation: z.lazy(() => exports.Conversation$inboundSchema).optional(),
|
|
245
252
|
}).transform((v) => {
|
|
246
253
|
return (0, primitives_js_1.remap)(v, {
|
|
247
254
|
"task_id": "taskId",
|
|
@@ -259,6 +266,7 @@ exports.CreateAgentResponseRequestRequestBody$outboundSchema = z.object({
|
|
|
259
266
|
metadata: z.record(z.any()).optional(),
|
|
260
267
|
background: z.boolean().default(false),
|
|
261
268
|
stream: z.boolean().default(false),
|
|
269
|
+
conversation: z.lazy(() => exports.Conversation$outboundSchema).optional(),
|
|
262
270
|
}).transform((v) => {
|
|
263
271
|
return (0, primitives_js_1.remap)(v, {
|
|
264
272
|
taskId: "task_id",
|
|
@@ -297,7 +305,7 @@ function createAgentResponseRequestRequestFromJSON(jsonString) {
|
|
|
297
305
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAgentResponseRequestRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAgentResponseRequestRequest' from JSON`);
|
|
298
306
|
}
|
|
299
307
|
/** @internal */
|
|
300
|
-
exports.
|
|
308
|
+
exports.CreateAgentResponseRequestResponseBody$inboundSchema = z.object({
|
|
301
309
|
data: z.string().transform((v, ctx) => {
|
|
302
310
|
try {
|
|
303
311
|
return JSON.parse(v);
|
|
@@ -309,208 +317,8 @@ exports.CreateAgentResponseRequestAgentsResponsesResponseBody$inboundSchema = z.
|
|
|
309
317
|
}).pipe(components.ResponseStreamingEvent$inboundSchema.optional()),
|
|
310
318
|
});
|
|
311
319
|
/** @internal */
|
|
312
|
-
exports.CreateAgentResponseRequestAgentsResponsesResponseBody$outboundSchema = z.object({
|
|
313
|
-
data: components.ResponseStreamingEvent$outboundSchema.optional(),
|
|
314
|
-
});
|
|
315
|
-
function createAgentResponseRequestAgentsResponsesResponseBodyToJSON(createAgentResponseRequestAgentsResponsesResponseBody) {
|
|
316
|
-
return JSON.stringify(exports.CreateAgentResponseRequestAgentsResponsesResponseBody$outboundSchema.parse(createAgentResponseRequestAgentsResponsesResponseBody));
|
|
317
|
-
}
|
|
318
|
-
function createAgentResponseRequestAgentsResponsesResponseBodyFromJSON(jsonString) {
|
|
319
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAgentResponseRequestAgentsResponsesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAgentResponseRequestAgentsResponsesResponseBody' from JSON`);
|
|
320
|
-
}
|
|
321
|
-
/** @internal */
|
|
322
|
-
exports.CreateAgentResponseRequestAgentsResponsesRole$inboundSchema = z
|
|
323
|
-
.nativeEnum(exports.CreateAgentResponseRequestAgentsResponsesRole);
|
|
324
|
-
/** @internal */
|
|
325
|
-
exports.CreateAgentResponseRequestAgentsResponsesRole$outboundSchema = exports.CreateAgentResponseRequestAgentsResponsesRole$inboundSchema;
|
|
326
|
-
/** @internal */
|
|
327
|
-
exports.Parts$inboundSchema = z
|
|
328
|
-
.union([
|
|
329
|
-
components.TextPart$inboundSchema,
|
|
330
|
-
components.DataPart$inboundSchema,
|
|
331
|
-
components.FilePart$inboundSchema,
|
|
332
|
-
components.ToolCallPart$inboundSchema,
|
|
333
|
-
components.ToolResultPart$inboundSchema,
|
|
334
|
-
]);
|
|
335
|
-
/** @internal */
|
|
336
|
-
exports.Parts$outboundSchema = z.union([
|
|
337
|
-
components.TextPart$outboundSchema,
|
|
338
|
-
components.DataPart$outboundSchema,
|
|
339
|
-
components.FilePart$outboundSchema,
|
|
340
|
-
components.ToolCallPart$outboundSchema,
|
|
341
|
-
components.ToolResultPart$outboundSchema,
|
|
342
|
-
]);
|
|
343
|
-
function partsToJSON(parts) {
|
|
344
|
-
return JSON.stringify(exports.Parts$outboundSchema.parse(parts));
|
|
345
|
-
}
|
|
346
|
-
function partsFromJSON(jsonString) {
|
|
347
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Parts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Parts' from JSON`);
|
|
348
|
-
}
|
|
349
|
-
/** @internal */
|
|
350
|
-
exports.Output$inboundSchema = z
|
|
351
|
-
.object({
|
|
352
|
-
messageId: z.string(),
|
|
353
|
-
role: exports.CreateAgentResponseRequestAgentsResponsesRole$inboundSchema,
|
|
354
|
-
parts: z.array(z.union([
|
|
355
|
-
components.TextPart$inboundSchema,
|
|
356
|
-
components.DataPart$inboundSchema,
|
|
357
|
-
components.FilePart$inboundSchema,
|
|
358
|
-
components.ToolCallPart$inboundSchema,
|
|
359
|
-
components.ToolResultPart$inboundSchema,
|
|
360
|
-
])),
|
|
361
|
-
metadata: z.record(z.any()).optional(),
|
|
362
|
-
});
|
|
363
|
-
/** @internal */
|
|
364
|
-
exports.Output$outboundSchema = z.object({
|
|
365
|
-
messageId: z.string(),
|
|
366
|
-
role: exports.CreateAgentResponseRequestAgentsResponsesRole$outboundSchema,
|
|
367
|
-
parts: z.array(z.union([
|
|
368
|
-
components.TextPart$outboundSchema,
|
|
369
|
-
components.DataPart$outboundSchema,
|
|
370
|
-
components.FilePart$outboundSchema,
|
|
371
|
-
components.ToolCallPart$outboundSchema,
|
|
372
|
-
components.ToolResultPart$outboundSchema,
|
|
373
|
-
])),
|
|
374
|
-
metadata: z.record(z.any()).optional(),
|
|
375
|
-
});
|
|
376
|
-
function outputToJSON(output) {
|
|
377
|
-
return JSON.stringify(exports.Output$outboundSchema.parse(output));
|
|
378
|
-
}
|
|
379
|
-
function outputFromJSON(jsonString) {
|
|
380
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Output$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Output' from JSON`);
|
|
381
|
-
}
|
|
382
|
-
/** @internal */
|
|
383
|
-
exports.PromptTokensDetails$inboundSchema = z.object({
|
|
384
|
-
cached_tokens: z.nullable(z.number().int()).optional(),
|
|
385
|
-
cache_creation_tokens: z.nullable(z.number().int()).optional(),
|
|
386
|
-
audio_tokens: z.nullable(z.number().int()).optional(),
|
|
387
|
-
}).transform((v) => {
|
|
388
|
-
return (0, primitives_js_1.remap)(v, {
|
|
389
|
-
"cached_tokens": "cachedTokens",
|
|
390
|
-
"cache_creation_tokens": "cacheCreationTokens",
|
|
391
|
-
"audio_tokens": "audioTokens",
|
|
392
|
-
});
|
|
393
|
-
});
|
|
394
|
-
/** @internal */
|
|
395
|
-
exports.PromptTokensDetails$outboundSchema = z.object({
|
|
396
|
-
cachedTokens: z.nullable(z.number().int()).optional(),
|
|
397
|
-
cacheCreationTokens: z.nullable(z.number().int()).optional(),
|
|
398
|
-
audioTokens: z.nullable(z.number().int()).optional(),
|
|
399
|
-
}).transform((v) => {
|
|
400
|
-
return (0, primitives_js_1.remap)(v, {
|
|
401
|
-
cachedTokens: "cached_tokens",
|
|
402
|
-
cacheCreationTokens: "cache_creation_tokens",
|
|
403
|
-
audioTokens: "audio_tokens",
|
|
404
|
-
});
|
|
405
|
-
});
|
|
406
|
-
function promptTokensDetailsToJSON(promptTokensDetails) {
|
|
407
|
-
return JSON.stringify(exports.PromptTokensDetails$outboundSchema.parse(promptTokensDetails));
|
|
408
|
-
}
|
|
409
|
-
function promptTokensDetailsFromJSON(jsonString) {
|
|
410
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PromptTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PromptTokensDetails' from JSON`);
|
|
411
|
-
}
|
|
412
|
-
/** @internal */
|
|
413
|
-
exports.CompletionTokensDetails$inboundSchema = z.object({
|
|
414
|
-
reasoning_tokens: z.nullable(z.number()).optional(),
|
|
415
|
-
accepted_prediction_tokens: z.nullable(z.number()).optional(),
|
|
416
|
-
rejected_prediction_tokens: z.nullable(z.number()).optional(),
|
|
417
|
-
audio_tokens: z.nullable(z.number().int()).optional(),
|
|
418
|
-
}).transform((v) => {
|
|
419
|
-
return (0, primitives_js_1.remap)(v, {
|
|
420
|
-
"reasoning_tokens": "reasoningTokens",
|
|
421
|
-
"accepted_prediction_tokens": "acceptedPredictionTokens",
|
|
422
|
-
"rejected_prediction_tokens": "rejectedPredictionTokens",
|
|
423
|
-
"audio_tokens": "audioTokens",
|
|
424
|
-
});
|
|
425
|
-
});
|
|
426
|
-
/** @internal */
|
|
427
|
-
exports.CompletionTokensDetails$outboundSchema = z.object({
|
|
428
|
-
reasoningTokens: z.nullable(z.number()).optional(),
|
|
429
|
-
acceptedPredictionTokens: z.nullable(z.number()).optional(),
|
|
430
|
-
rejectedPredictionTokens: z.nullable(z.number()).optional(),
|
|
431
|
-
audioTokens: z.nullable(z.number().int()).optional(),
|
|
432
|
-
}).transform((v) => {
|
|
433
|
-
return (0, primitives_js_1.remap)(v, {
|
|
434
|
-
reasoningTokens: "reasoning_tokens",
|
|
435
|
-
acceptedPredictionTokens: "accepted_prediction_tokens",
|
|
436
|
-
rejectedPredictionTokens: "rejected_prediction_tokens",
|
|
437
|
-
audioTokens: "audio_tokens",
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
function completionTokensDetailsToJSON(completionTokensDetails) {
|
|
441
|
-
return JSON.stringify(exports.CompletionTokensDetails$outboundSchema.parse(completionTokensDetails));
|
|
442
|
-
}
|
|
443
|
-
function completionTokensDetailsFromJSON(jsonString) {
|
|
444
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CompletionTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompletionTokensDetails' from JSON`);
|
|
445
|
-
}
|
|
446
|
-
/** @internal */
|
|
447
|
-
exports.CreateAgentResponseRequestUsage$inboundSchema = z.object({
|
|
448
|
-
completion_tokens: z.number().optional(),
|
|
449
|
-
prompt_tokens: z.number().optional(),
|
|
450
|
-
total_tokens: z.number().optional(),
|
|
451
|
-
prompt_tokens_details: z.nullable(z.lazy(() => exports.PromptTokensDetails$inboundSchema)).optional(),
|
|
452
|
-
completion_tokens_details: z.nullable(z.lazy(() => exports.CompletionTokensDetails$inboundSchema)).optional(),
|
|
453
|
-
}).transform((v) => {
|
|
454
|
-
return (0, primitives_js_1.remap)(v, {
|
|
455
|
-
"completion_tokens": "completionTokens",
|
|
456
|
-
"prompt_tokens": "promptTokens",
|
|
457
|
-
"total_tokens": "totalTokens",
|
|
458
|
-
"prompt_tokens_details": "promptTokensDetails",
|
|
459
|
-
"completion_tokens_details": "completionTokensDetails",
|
|
460
|
-
});
|
|
461
|
-
});
|
|
462
|
-
/** @internal */
|
|
463
|
-
exports.CreateAgentResponseRequestUsage$outboundSchema = z.object({
|
|
464
|
-
completionTokens: z.number().optional(),
|
|
465
|
-
promptTokens: z.number().optional(),
|
|
466
|
-
totalTokens: z.number().optional(),
|
|
467
|
-
promptTokensDetails: z.nullable(z.lazy(() => exports.PromptTokensDetails$outboundSchema)).optional(),
|
|
468
|
-
completionTokensDetails: z.nullable(z.lazy(() => exports.CompletionTokensDetails$outboundSchema)).optional(),
|
|
469
|
-
}).transform((v) => {
|
|
470
|
-
return (0, primitives_js_1.remap)(v, {
|
|
471
|
-
completionTokens: "completion_tokens",
|
|
472
|
-
promptTokens: "prompt_tokens",
|
|
473
|
-
totalTokens: "total_tokens",
|
|
474
|
-
promptTokensDetails: "prompt_tokens_details",
|
|
475
|
-
completionTokensDetails: "completion_tokens_details",
|
|
476
|
-
});
|
|
477
|
-
});
|
|
478
|
-
function createAgentResponseRequestUsageToJSON(createAgentResponseRequestUsage) {
|
|
479
|
-
return JSON.stringify(exports.CreateAgentResponseRequestUsage$outboundSchema.parse(createAgentResponseRequestUsage));
|
|
480
|
-
}
|
|
481
|
-
function createAgentResponseRequestUsageFromJSON(jsonString) {
|
|
482
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAgentResponseRequestUsage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAgentResponseRequestUsage' from JSON`);
|
|
483
|
-
}
|
|
484
|
-
/** @internal */
|
|
485
|
-
exports.CreateAgentResponseRequestResponseBody$inboundSchema = z.object({
|
|
486
|
-
_id: z.string(),
|
|
487
|
-
task_id: z.string(),
|
|
488
|
-
output: z.array(z.lazy(() => exports.Output$inboundSchema)),
|
|
489
|
-
created_at: z.string(),
|
|
490
|
-
model: z.string(),
|
|
491
|
-
usage: z.nullable(z.lazy(() => exports.CreateAgentResponseRequestUsage$inboundSchema))
|
|
492
|
-
.optional(),
|
|
493
|
-
}).transform((v) => {
|
|
494
|
-
return (0, primitives_js_1.remap)(v, {
|
|
495
|
-
"_id": "id",
|
|
496
|
-
"task_id": "taskId",
|
|
497
|
-
"created_at": "createdAt",
|
|
498
|
-
});
|
|
499
|
-
});
|
|
500
|
-
/** @internal */
|
|
501
320
|
exports.CreateAgentResponseRequestResponseBody$outboundSchema = z.object({
|
|
502
|
-
|
|
503
|
-
taskId: z.string(),
|
|
504
|
-
output: z.array(z.lazy(() => exports.Output$outboundSchema)),
|
|
505
|
-
createdAt: z.string(),
|
|
506
|
-
model: z.string(),
|
|
507
|
-
usage: z.nullable(z.lazy(() => exports.CreateAgentResponseRequestUsage$outboundSchema)).optional(),
|
|
508
|
-
}).transform((v) => {
|
|
509
|
-
return (0, primitives_js_1.remap)(v, {
|
|
510
|
-
id: "_id",
|
|
511
|
-
taskId: "task_id",
|
|
512
|
-
createdAt: "created_at",
|
|
513
|
-
});
|
|
321
|
+
data: components.ResponseStreamingEvent$outboundSchema.optional(),
|
|
514
322
|
});
|
|
515
323
|
function createAgentResponseRequestResponseBodyToJSON(createAgentResponseRequestResponseBody) {
|
|
516
324
|
return JSON.stringify(exports.CreateAgentResponseRequestResponseBody$outboundSchema.parse(createAgentResponseRequestResponseBody));
|
|
@@ -520,23 +328,20 @@ function createAgentResponseRequestResponseBodyFromJSON(jsonString) {
|
|
|
520
328
|
}
|
|
521
329
|
/** @internal */
|
|
522
330
|
exports.CreateAgentResponseRequestResponse$inboundSchema = z.union([
|
|
523
|
-
|
|
331
|
+
components.CreateAgentResponse$inboundSchema,
|
|
524
332
|
z.instanceof((ReadableStream))
|
|
525
333
|
.transform(stream => {
|
|
526
334
|
return new event_streams_js_1.EventStream(stream, rawEvent => {
|
|
527
335
|
if (rawEvent.data === "[DONE]")
|
|
528
336
|
return { done: true };
|
|
529
337
|
return {
|
|
530
|
-
value: z.lazy(() => exports.
|
|
338
|
+
value: z.lazy(() => exports.CreateAgentResponseRequestResponseBody$inboundSchema).parse(rawEvent),
|
|
531
339
|
};
|
|
532
340
|
});
|
|
533
341
|
}),
|
|
534
342
|
]);
|
|
535
343
|
/** @internal */
|
|
536
|
-
exports.CreateAgentResponseRequestResponse$outboundSchema = z.union([
|
|
537
|
-
z.lazy(() => exports.CreateAgentResponseRequestResponseBody$outboundSchema),
|
|
538
|
-
z.never(),
|
|
539
|
-
]);
|
|
344
|
+
exports.CreateAgentResponseRequestResponse$outboundSchema = z.union([components.CreateAgentResponse$outboundSchema, z.never()]);
|
|
540
345
|
function createAgentResponseRequestResponseToJSON(createAgentResponseRequestResponse) {
|
|
541
346
|
return JSON.stringify(exports.CreateAgentResponseRequestResponse$outboundSchema.parse(createAgentResponseRequestResponse));
|
|
542
347
|
}
|