@orq-ai/node 4.11.0-rc.28 → 4.11.0-rc.29
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/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +2 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +7 -5
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/annotationsCreate.d.ts +1 -1
- package/funcs/annotationsCreate.js +1 -1
- package/funcs/annotationsDelete.d.ts +1 -1
- package/funcs/annotationsDelete.js +1 -1
- package/funcs/deploymentsInvoke.d.ts +2 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +2 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +2 -1
- package/funcs/promptsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentresponserequest.d.ts +336 -0
- package/models/components/agentresponserequest.d.ts.map +1 -0
- package/models/components/agentresponserequest.js +210 -0
- package/models/components/agentresponserequest.js.map +1 -0
- 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 +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +1573 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/invokedeploymentrequest.js +1137 -0
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +4 -4
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +7 -7
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +2 -329
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -166
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +48 -10
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +37 -5
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.d.ts +210 -12
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +136 -9
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.d.ts +3 -0
- package/models/operations/createdatasource.d.ts.map +1 -1
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createdatasource.js.map +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +7 -4
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +5 -5
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deleteannotation.d.ts +19 -2
- package/models/operations/deleteannotation.d.ts.map +1 -1
- package/models/operations/deleteannotation.js +20 -2
- package/models/operations/deleteannotation.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 +484 -479
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +0 -1560
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -1126
- 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 +73 -72
- 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/invokeagent.d.ts +51 -48
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +43 -46
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listdatasetdatapoints.d.ts +210 -12
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +138 -9
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- 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.d.ts +33 -12
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +9 -6
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +210 -12
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +140 -8
- package/models/operations/retrievedatapoint.js.map +1 -1
- 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/streamagent.d.ts +9 -6
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +6 -6
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.d.ts +210 -12
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +138 -9
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +9 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +7 -6
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js.map +1 -1
- package/sdk/annotations.d.ts +2 -2
- package/sdk/annotations.js +2 -2
- package/sdk/deployments.d.ts +2 -1
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js.map +1 -1
- package/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/sdk/orqresponses.d.ts +1 -1
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +2 -2
- package/sdk/orqresponses.js.map +1 -1
- package/sdk/prompts.d.ts +1 -1
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +2 -2
- package/src/funcs/agentsResponsesCreate.ts +8 -5
- package/src/funcs/agentsStream.ts +2 -2
- package/src/funcs/annotationsCreate.ts +1 -1
- package/src/funcs/annotationsDelete.ts +1 -1
- package/src/funcs/deploymentsInvoke.ts +4 -4
- package/src/funcs/promptsCreate.ts +4 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +565 -0
- package/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/src/models/components/index.ts +2 -0
- package/src/models/components/invokedeploymentrequest.ts +3457 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
- package/src/models/operations/createagentresponserequest.ts +4 -550
- package/src/models/operations/createannotation.ts +110 -16
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +335 -19
- package/src/models/operations/createdatasource.ts +4 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +13 -8
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deleteannotation.ts +46 -3
- package/src/models/operations/deploymentgetconfig.ts +1156 -1606
- package/src/models/operations/deploymentinvoke.ts +222 -3675
- package/src/models/operations/deploymentstream.ts +244 -285
- 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/invokeagent.ts +90 -116
- package/src/models/operations/listdatasetdatapoints.ts +378 -19
- 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 +42 -18
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +363 -19
- 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/streamagent.ts +16 -11
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +366 -19
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +17 -11
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +2 -2
- package/src/sdk/annotations.ts +2 -2
- package/src/sdk/deployments.ts +2 -1
- package/src/sdk/feedback.ts +1 -4
- package/src/sdk/orqresponses.ts +2 -2
- package/src/sdk/prompts.ts +1 -1
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { ErrorPart, ErrorPart$Outbound } from "./errorpart.js";
|
|
4
|
+
import { FilePart, FilePart$Outbound } from "./filepart.js";
|
|
5
|
+
import { TextPart, TextPart$Outbound } from "./textpart.js";
|
|
6
|
+
import { ToolResultPart, ToolResultPart$Outbound } from "./toolresultpart.js";
|
|
7
|
+
/**
|
|
8
|
+
* Message containing tool execution results
|
|
9
|
+
*/
|
|
10
|
+
export declare const RoleToolMessage: {
|
|
11
|
+
readonly Tool: "tool";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Message containing tool execution results
|
|
15
|
+
*/
|
|
16
|
+
export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
|
|
17
|
+
/**
|
|
18
|
+
* Message from the end user
|
|
19
|
+
*/
|
|
20
|
+
export declare const RoleUserMessage: {
|
|
21
|
+
readonly User: "user";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Message from the end user
|
|
25
|
+
*/
|
|
26
|
+
export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
|
|
27
|
+
/**
|
|
28
|
+
* Message role (user or tool for continuing executions)
|
|
29
|
+
*/
|
|
30
|
+
export type AgentResponseRequestRole = RoleUserMessage | RoleToolMessage;
|
|
31
|
+
/**
|
|
32
|
+
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
33
|
+
*/
|
|
34
|
+
export type PublicMessagePart = TextPart | FilePart | ToolResultPart | ErrorPart;
|
|
35
|
+
/**
|
|
36
|
+
* The A2A message to send to the agent (user input or tool results)
|
|
37
|
+
*/
|
|
38
|
+
export type A2AMessage = {
|
|
39
|
+
/**
|
|
40
|
+
* Optional A2A message ID in ULID format
|
|
41
|
+
*/
|
|
42
|
+
messageId?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Message role (user or tool for continuing executions)
|
|
45
|
+
*/
|
|
46
|
+
role: RoleUserMessage | RoleToolMessage;
|
|
47
|
+
/**
|
|
48
|
+
* A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
|
|
49
|
+
*/
|
|
50
|
+
parts: Array<TextPart | FilePart | ToolResultPart | ErrorPart>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
54
|
+
*/
|
|
55
|
+
export type AgentResponseRequestIdentity = {
|
|
56
|
+
/**
|
|
57
|
+
* Unique identifier for the contact
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
/**
|
|
61
|
+
* Display name of the contact
|
|
62
|
+
*/
|
|
63
|
+
displayName?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Email address of the contact
|
|
66
|
+
*/
|
|
67
|
+
email?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
70
|
+
*/
|
|
71
|
+
metadata?: Array<{
|
|
72
|
+
[k: string]: any;
|
|
73
|
+
}> | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* URL to the contact's avatar or logo
|
|
76
|
+
*/
|
|
77
|
+
logoUrl?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* A list of tags associated with the contact
|
|
80
|
+
*/
|
|
81
|
+
tags?: Array<string> | undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
85
|
+
*
|
|
86
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
87
|
+
*/
|
|
88
|
+
export type Contact = {
|
|
89
|
+
/**
|
|
90
|
+
* Unique identifier for the contact
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
/**
|
|
94
|
+
* Display name of the contact
|
|
95
|
+
*/
|
|
96
|
+
displayName?: string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Email address of the contact
|
|
99
|
+
*/
|
|
100
|
+
email?: string | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
103
|
+
*/
|
|
104
|
+
metadata?: Array<{
|
|
105
|
+
[k: string]: any;
|
|
106
|
+
}> | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* URL to the contact's avatar or logo
|
|
109
|
+
*/
|
|
110
|
+
logoUrl?: string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* A list of tags associated with the contact
|
|
113
|
+
*/
|
|
114
|
+
tags?: Array<string> | undefined;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Thread information to group related requests
|
|
118
|
+
*/
|
|
119
|
+
export type AgentResponseRequestThread = {
|
|
120
|
+
/**
|
|
121
|
+
* Unique thread identifier to group related invocations.
|
|
122
|
+
*/
|
|
123
|
+
id: string;
|
|
124
|
+
/**
|
|
125
|
+
* Optional tags to differentiate or categorize threads
|
|
126
|
+
*/
|
|
127
|
+
tags?: Array<string> | undefined;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
131
|
+
*/
|
|
132
|
+
export type Memory = {
|
|
133
|
+
/**
|
|
134
|
+
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
135
|
+
*/
|
|
136
|
+
entityId: string;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Override template engine for this invocation. If not provided, uses the agent default.
|
|
140
|
+
*/
|
|
141
|
+
export declare const Engine: {
|
|
142
|
+
readonly Text: "text";
|
|
143
|
+
readonly Jinja: "jinja";
|
|
144
|
+
readonly Mustache: "mustache";
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Override template engine for this invocation. If not provided, uses the agent default.
|
|
148
|
+
*/
|
|
149
|
+
export type Engine = ClosedEnum<typeof Engine>;
|
|
150
|
+
/**
|
|
151
|
+
* Configuration options for the agent invocation
|
|
152
|
+
*/
|
|
153
|
+
export type Configuration = {
|
|
154
|
+
/**
|
|
155
|
+
* Whether to block until the agent task completes. When true, the response will include the full task with messages. When false (default), returns immediately with task ID and status.
|
|
156
|
+
*/
|
|
157
|
+
blocking?: boolean | undefined;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Conversation context for chat studio integration
|
|
161
|
+
*/
|
|
162
|
+
export type Conversation = {
|
|
163
|
+
/**
|
|
164
|
+
* Unique ULID identifier for the conversation, prefixed with "conv_". Used to link agent executions to a specific conversation thread.
|
|
165
|
+
*/
|
|
166
|
+
id: string;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Request body for creating an agent response. Extends A2AInvokeRequest with response options. Matches POST /v2/agents/{key}/responses
|
|
170
|
+
*/
|
|
171
|
+
export type AgentResponseRequest = {
|
|
172
|
+
/**
|
|
173
|
+
* 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.
|
|
174
|
+
*/
|
|
175
|
+
taskId?: string | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* The A2A message to send to the agent (user input or tool results)
|
|
178
|
+
*/
|
|
179
|
+
message: A2AMessage;
|
|
180
|
+
/**
|
|
181
|
+
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
182
|
+
*/
|
|
183
|
+
variables?: {
|
|
184
|
+
[k: string]: any;
|
|
185
|
+
} | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
188
|
+
*/
|
|
189
|
+
identity?: AgentResponseRequestIdentity | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated Use identity instead. Information about the contact making the request.
|
|
192
|
+
*
|
|
193
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
194
|
+
*/
|
|
195
|
+
contact?: Contact | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Thread information to group related requests
|
|
198
|
+
*/
|
|
199
|
+
thread?: AgentResponseRequestThread | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
202
|
+
*/
|
|
203
|
+
memory?: Memory | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* Optional metadata for the agent invocation as key-value pairs that will be included in traces
|
|
206
|
+
*/
|
|
207
|
+
metadata?: {
|
|
208
|
+
[k: string]: any;
|
|
209
|
+
} | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Override template engine for this invocation. If not provided, uses the agent default.
|
|
212
|
+
*/
|
|
213
|
+
engine?: Engine | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Configuration options for the agent invocation
|
|
216
|
+
*/
|
|
217
|
+
configuration?: Configuration | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* If true, returns immediately without waiting for completion. If false (default), waits until the agent becomes inactive or errors.
|
|
220
|
+
*/
|
|
221
|
+
background?: boolean | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* If true, returns Server-Sent Events (SSE) streaming response with real-time events. If false (default), returns standard JSON response.
|
|
224
|
+
*/
|
|
225
|
+
stream?: boolean | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Conversation context for chat studio integration
|
|
228
|
+
*/
|
|
229
|
+
conversation?: Conversation | undefined;
|
|
230
|
+
};
|
|
231
|
+
/** @internal */
|
|
232
|
+
export declare const RoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof RoleToolMessage>;
|
|
233
|
+
/** @internal */
|
|
234
|
+
export declare const RoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof RoleUserMessage>;
|
|
235
|
+
/** @internal */
|
|
236
|
+
export type AgentResponseRequestRole$Outbound = string | string;
|
|
237
|
+
/** @internal */
|
|
238
|
+
export declare const AgentResponseRequestRole$outboundSchema: z.ZodType<AgentResponseRequestRole$Outbound, z.ZodTypeDef, AgentResponseRequestRole>;
|
|
239
|
+
export declare function agentResponseRequestRoleToJSON(agentResponseRequestRole: AgentResponseRequestRole): string;
|
|
240
|
+
/** @internal */
|
|
241
|
+
export type PublicMessagePart$Outbound = TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound | ErrorPart$Outbound;
|
|
242
|
+
/** @internal */
|
|
243
|
+
export declare const PublicMessagePart$outboundSchema: z.ZodType<PublicMessagePart$Outbound, z.ZodTypeDef, PublicMessagePart>;
|
|
244
|
+
export declare function publicMessagePartToJSON(publicMessagePart: PublicMessagePart): string;
|
|
245
|
+
/** @internal */
|
|
246
|
+
export type A2AMessage$Outbound = {
|
|
247
|
+
messageId?: string | undefined;
|
|
248
|
+
role: string | string;
|
|
249
|
+
parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound | ErrorPart$Outbound>;
|
|
250
|
+
};
|
|
251
|
+
/** @internal */
|
|
252
|
+
export declare const A2AMessage$outboundSchema: z.ZodType<A2AMessage$Outbound, z.ZodTypeDef, A2AMessage>;
|
|
253
|
+
export declare function a2AMessageToJSON(a2AMessage: A2AMessage): string;
|
|
254
|
+
/** @internal */
|
|
255
|
+
export type AgentResponseRequestIdentity$Outbound = {
|
|
256
|
+
id: string;
|
|
257
|
+
display_name?: string | undefined;
|
|
258
|
+
email?: string | undefined;
|
|
259
|
+
metadata?: Array<{
|
|
260
|
+
[k: string]: any;
|
|
261
|
+
}> | undefined;
|
|
262
|
+
logo_url?: string | undefined;
|
|
263
|
+
tags?: Array<string> | undefined;
|
|
264
|
+
};
|
|
265
|
+
/** @internal */
|
|
266
|
+
export declare const AgentResponseRequestIdentity$outboundSchema: z.ZodType<AgentResponseRequestIdentity$Outbound, z.ZodTypeDef, AgentResponseRequestIdentity>;
|
|
267
|
+
export declare function agentResponseRequestIdentityToJSON(agentResponseRequestIdentity: AgentResponseRequestIdentity): string;
|
|
268
|
+
/** @internal */
|
|
269
|
+
export type Contact$Outbound = {
|
|
270
|
+
id: string;
|
|
271
|
+
display_name?: string | undefined;
|
|
272
|
+
email?: string | undefined;
|
|
273
|
+
metadata?: Array<{
|
|
274
|
+
[k: string]: any;
|
|
275
|
+
}> | undefined;
|
|
276
|
+
logo_url?: string | undefined;
|
|
277
|
+
tags?: Array<string> | undefined;
|
|
278
|
+
};
|
|
279
|
+
/** @internal */
|
|
280
|
+
export declare const Contact$outboundSchema: z.ZodType<Contact$Outbound, z.ZodTypeDef, Contact>;
|
|
281
|
+
export declare function contactToJSON(contact: Contact): string;
|
|
282
|
+
/** @internal */
|
|
283
|
+
export type AgentResponseRequestThread$Outbound = {
|
|
284
|
+
id: string;
|
|
285
|
+
tags?: Array<string> | undefined;
|
|
286
|
+
};
|
|
287
|
+
/** @internal */
|
|
288
|
+
export declare const AgentResponseRequestThread$outboundSchema: z.ZodType<AgentResponseRequestThread$Outbound, z.ZodTypeDef, AgentResponseRequestThread>;
|
|
289
|
+
export declare function agentResponseRequestThreadToJSON(agentResponseRequestThread: AgentResponseRequestThread): string;
|
|
290
|
+
/** @internal */
|
|
291
|
+
export type Memory$Outbound = {
|
|
292
|
+
entity_id: string;
|
|
293
|
+
};
|
|
294
|
+
/** @internal */
|
|
295
|
+
export declare const Memory$outboundSchema: z.ZodType<Memory$Outbound, z.ZodTypeDef, Memory>;
|
|
296
|
+
export declare function memoryToJSON(memory: Memory): string;
|
|
297
|
+
/** @internal */
|
|
298
|
+
export declare const Engine$outboundSchema: z.ZodNativeEnum<typeof Engine>;
|
|
299
|
+
/** @internal */
|
|
300
|
+
export type Configuration$Outbound = {
|
|
301
|
+
blocking: boolean;
|
|
302
|
+
};
|
|
303
|
+
/** @internal */
|
|
304
|
+
export declare const Configuration$outboundSchema: z.ZodType<Configuration$Outbound, z.ZodTypeDef, Configuration>;
|
|
305
|
+
export declare function configurationToJSON(configuration: Configuration): string;
|
|
306
|
+
/** @internal */
|
|
307
|
+
export type Conversation$Outbound = {
|
|
308
|
+
_id: string;
|
|
309
|
+
};
|
|
310
|
+
/** @internal */
|
|
311
|
+
export declare const Conversation$outboundSchema: z.ZodType<Conversation$Outbound, z.ZodTypeDef, Conversation>;
|
|
312
|
+
export declare function conversationToJSON(conversation: Conversation): string;
|
|
313
|
+
/** @internal */
|
|
314
|
+
export type AgentResponseRequest$Outbound = {
|
|
315
|
+
task_id?: string | undefined;
|
|
316
|
+
message: A2AMessage$Outbound;
|
|
317
|
+
variables?: {
|
|
318
|
+
[k: string]: any;
|
|
319
|
+
} | undefined;
|
|
320
|
+
identity?: AgentResponseRequestIdentity$Outbound | undefined;
|
|
321
|
+
contact?: Contact$Outbound | undefined;
|
|
322
|
+
thread?: AgentResponseRequestThread$Outbound | undefined;
|
|
323
|
+
memory?: Memory$Outbound | undefined;
|
|
324
|
+
metadata?: {
|
|
325
|
+
[k: string]: any;
|
|
326
|
+
} | undefined;
|
|
327
|
+
engine?: string | undefined;
|
|
328
|
+
configuration?: Configuration$Outbound | undefined;
|
|
329
|
+
background: boolean;
|
|
330
|
+
stream: boolean;
|
|
331
|
+
conversation?: Conversation$Outbound | undefined;
|
|
332
|
+
};
|
|
333
|
+
/** @internal */
|
|
334
|
+
export declare const AgentResponseRequest$outboundSchema: z.ZodType<AgentResponseRequest$Outbound, z.ZodTypeDef, AgentResponseRequest>;
|
|
335
|
+
export declare function agentResponseRequestToJSON(agentResponseRequest: AgentResponseRequest): string;
|
|
336
|
+
//# sourceMappingURL=agentresponserequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentresponserequest.d.ts","sourceRoot":"","sources":["../../src/models/components/agentresponserequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EACR,iBAAiB,EAElB,MAAM,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ACzD,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACnD,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAoBpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AgentResponseRequest$outboundSchema = exports.Conversation$outboundSchema = exports.Configuration$outboundSchema = exports.Engine$outboundSchema = exports.Memory$outboundSchema = exports.AgentResponseRequestThread$outboundSchema = exports.Contact$outboundSchema = exports.AgentResponseRequestIdentity$outboundSchema = exports.A2AMessage$outboundSchema = exports.PublicMessagePart$outboundSchema = exports.AgentResponseRequestRole$outboundSchema = exports.RoleUserMessage$outboundSchema = exports.RoleToolMessage$outboundSchema = exports.Engine = exports.RoleUserMessage = exports.RoleToolMessage = void 0;
|
|
40
|
+
exports.agentResponseRequestRoleToJSON = agentResponseRequestRoleToJSON;
|
|
41
|
+
exports.publicMessagePartToJSON = publicMessagePartToJSON;
|
|
42
|
+
exports.a2AMessageToJSON = a2AMessageToJSON;
|
|
43
|
+
exports.agentResponseRequestIdentityToJSON = agentResponseRequestIdentityToJSON;
|
|
44
|
+
exports.contactToJSON = contactToJSON;
|
|
45
|
+
exports.agentResponseRequestThreadToJSON = agentResponseRequestThreadToJSON;
|
|
46
|
+
exports.memoryToJSON = memoryToJSON;
|
|
47
|
+
exports.configurationToJSON = configurationToJSON;
|
|
48
|
+
exports.conversationToJSON = conversationToJSON;
|
|
49
|
+
exports.agentResponseRequestToJSON = agentResponseRequestToJSON;
|
|
50
|
+
const z = __importStar(require("zod/v3"));
|
|
51
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
52
|
+
const errorpart_js_1 = require("./errorpart.js");
|
|
53
|
+
const filepart_js_1 = require("./filepart.js");
|
|
54
|
+
const textpart_js_1 = require("./textpart.js");
|
|
55
|
+
const toolresultpart_js_1 = require("./toolresultpart.js");
|
|
56
|
+
/**
|
|
57
|
+
* Message containing tool execution results
|
|
58
|
+
*/
|
|
59
|
+
exports.RoleToolMessage = {
|
|
60
|
+
Tool: "tool",
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Message from the end user
|
|
64
|
+
*/
|
|
65
|
+
exports.RoleUserMessage = {
|
|
66
|
+
User: "user",
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Override template engine for this invocation. If not provided, uses the agent default.
|
|
70
|
+
*/
|
|
71
|
+
exports.Engine = {
|
|
72
|
+
Text: "text",
|
|
73
|
+
Jinja: "jinja",
|
|
74
|
+
Mustache: "mustache",
|
|
75
|
+
};
|
|
76
|
+
/** @internal */
|
|
77
|
+
exports.RoleToolMessage$outboundSchema = z.nativeEnum(exports.RoleToolMessage);
|
|
78
|
+
/** @internal */
|
|
79
|
+
exports.RoleUserMessage$outboundSchema = z.nativeEnum(exports.RoleUserMessage);
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.AgentResponseRequestRole$outboundSchema = z.union([exports.RoleUserMessage$outboundSchema, exports.RoleToolMessage$outboundSchema]);
|
|
82
|
+
function agentResponseRequestRoleToJSON(agentResponseRequestRole) {
|
|
83
|
+
return JSON.stringify(exports.AgentResponseRequestRole$outboundSchema.parse(agentResponseRequestRole));
|
|
84
|
+
}
|
|
85
|
+
/** @internal */
|
|
86
|
+
exports.PublicMessagePart$outboundSchema = z.union([
|
|
87
|
+
textpart_js_1.TextPart$outboundSchema,
|
|
88
|
+
filepart_js_1.FilePart$outboundSchema,
|
|
89
|
+
toolresultpart_js_1.ToolResultPart$outboundSchema,
|
|
90
|
+
errorpart_js_1.ErrorPart$outboundSchema,
|
|
91
|
+
]);
|
|
92
|
+
function publicMessagePartToJSON(publicMessagePart) {
|
|
93
|
+
return JSON.stringify(exports.PublicMessagePart$outboundSchema.parse(publicMessagePart));
|
|
94
|
+
}
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.A2AMessage$outboundSchema = z.object({
|
|
97
|
+
messageId: z.string().optional(),
|
|
98
|
+
role: z.union([
|
|
99
|
+
exports.RoleUserMessage$outboundSchema,
|
|
100
|
+
exports.RoleToolMessage$outboundSchema,
|
|
101
|
+
]),
|
|
102
|
+
parts: z.array(z.union([
|
|
103
|
+
textpart_js_1.TextPart$outboundSchema,
|
|
104
|
+
filepart_js_1.FilePart$outboundSchema,
|
|
105
|
+
toolresultpart_js_1.ToolResultPart$outboundSchema,
|
|
106
|
+
errorpart_js_1.ErrorPart$outboundSchema,
|
|
107
|
+
])),
|
|
108
|
+
});
|
|
109
|
+
function a2AMessageToJSON(a2AMessage) {
|
|
110
|
+
return JSON.stringify(exports.A2AMessage$outboundSchema.parse(a2AMessage));
|
|
111
|
+
}
|
|
112
|
+
/** @internal */
|
|
113
|
+
exports.AgentResponseRequestIdentity$outboundSchema = z.object({
|
|
114
|
+
id: z.string(),
|
|
115
|
+
displayName: z.string().optional(),
|
|
116
|
+
email: z.string().optional(),
|
|
117
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
118
|
+
logoUrl: z.string().optional(),
|
|
119
|
+
tags: z.array(z.string()).optional(),
|
|
120
|
+
}).transform((v) => {
|
|
121
|
+
return (0, primitives_js_1.remap)(v, {
|
|
122
|
+
displayName: "display_name",
|
|
123
|
+
logoUrl: "logo_url",
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
function agentResponseRequestIdentityToJSON(agentResponseRequestIdentity) {
|
|
127
|
+
return JSON.stringify(exports.AgentResponseRequestIdentity$outboundSchema.parse(agentResponseRequestIdentity));
|
|
128
|
+
}
|
|
129
|
+
/** @internal */
|
|
130
|
+
exports.Contact$outboundSchema = z.object({
|
|
131
|
+
id: z.string(),
|
|
132
|
+
displayName: z.string().optional(),
|
|
133
|
+
email: z.string().optional(),
|
|
134
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
135
|
+
logoUrl: z.string().optional(),
|
|
136
|
+
tags: z.array(z.string()).optional(),
|
|
137
|
+
}).transform((v) => {
|
|
138
|
+
return (0, primitives_js_1.remap)(v, {
|
|
139
|
+
displayName: "display_name",
|
|
140
|
+
logoUrl: "logo_url",
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
function contactToJSON(contact) {
|
|
144
|
+
return JSON.stringify(exports.Contact$outboundSchema.parse(contact));
|
|
145
|
+
}
|
|
146
|
+
/** @internal */
|
|
147
|
+
exports.AgentResponseRequestThread$outboundSchema = z.object({
|
|
148
|
+
id: z.string(),
|
|
149
|
+
tags: z.array(z.string()).optional(),
|
|
150
|
+
});
|
|
151
|
+
function agentResponseRequestThreadToJSON(agentResponseRequestThread) {
|
|
152
|
+
return JSON.stringify(exports.AgentResponseRequestThread$outboundSchema.parse(agentResponseRequestThread));
|
|
153
|
+
}
|
|
154
|
+
/** @internal */
|
|
155
|
+
exports.Memory$outboundSchema = z.object({
|
|
156
|
+
entityId: z.string(),
|
|
157
|
+
}).transform((v) => {
|
|
158
|
+
return (0, primitives_js_1.remap)(v, {
|
|
159
|
+
entityId: "entity_id",
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
function memoryToJSON(memory) {
|
|
163
|
+
return JSON.stringify(exports.Memory$outboundSchema.parse(memory));
|
|
164
|
+
}
|
|
165
|
+
/** @internal */
|
|
166
|
+
exports.Engine$outboundSchema = z
|
|
167
|
+
.nativeEnum(exports.Engine);
|
|
168
|
+
/** @internal */
|
|
169
|
+
exports.Configuration$outboundSchema = z.object({
|
|
170
|
+
blocking: z.boolean().default(false),
|
|
171
|
+
});
|
|
172
|
+
function configurationToJSON(configuration) {
|
|
173
|
+
return JSON.stringify(exports.Configuration$outboundSchema.parse(configuration));
|
|
174
|
+
}
|
|
175
|
+
/** @internal */
|
|
176
|
+
exports.Conversation$outboundSchema = z.object({
|
|
177
|
+
id: z.string(),
|
|
178
|
+
}).transform((v) => {
|
|
179
|
+
return (0, primitives_js_1.remap)(v, {
|
|
180
|
+
id: "_id",
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
function conversationToJSON(conversation) {
|
|
184
|
+
return JSON.stringify(exports.Conversation$outboundSchema.parse(conversation));
|
|
185
|
+
}
|
|
186
|
+
/** @internal */
|
|
187
|
+
exports.AgentResponseRequest$outboundSchema = z.object({
|
|
188
|
+
taskId: z.string().optional(),
|
|
189
|
+
message: z.lazy(() => exports.A2AMessage$outboundSchema),
|
|
190
|
+
variables: z.record(z.any()).optional(),
|
|
191
|
+
identity: z.lazy(() => exports.AgentResponseRequestIdentity$outboundSchema)
|
|
192
|
+
.optional(),
|
|
193
|
+
contact: z.lazy(() => exports.Contact$outboundSchema).optional(),
|
|
194
|
+
thread: z.lazy(() => exports.AgentResponseRequestThread$outboundSchema).optional(),
|
|
195
|
+
memory: z.lazy(() => exports.Memory$outboundSchema).optional(),
|
|
196
|
+
metadata: z.record(z.any()).optional(),
|
|
197
|
+
engine: exports.Engine$outboundSchema.optional(),
|
|
198
|
+
configuration: z.lazy(() => exports.Configuration$outboundSchema).optional(),
|
|
199
|
+
background: z.boolean().default(false),
|
|
200
|
+
stream: z.boolean().default(false),
|
|
201
|
+
conversation: z.lazy(() => exports.Conversation$outboundSchema).optional(),
|
|
202
|
+
}).transform((v) => {
|
|
203
|
+
return (0, primitives_js_1.remap)(v, {
|
|
204
|
+
taskId: "task_id",
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
function agentResponseRequestToJSON(agentResponseRequest) {
|
|
208
|
+
return JSON.stringify(exports.AgentResponseRequest$outboundSchema.parse(agentResponseRequest));
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=agentresponserequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentresponserequest.js","sourceRoot":"","sources":["../../src/models/components/agentresponserequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuRH,wEAMC;AAqBD,0DAMC;AAmCD,4CAEC;AA+BD,gFAQC;AA+BD,sCAEC;AAkBD,4EAMC;AAoBD,oCAEC;AAoBD,kDAEC;AAoBD,gDAEC;AA6CD,gEAMC;AAhjBD,0CAA4B;AAC5B,2DAA0D;AAE1D,iDAIwB;AACxB,+CAIuB;AACvB,+CAIuB;AACvB,2DAI6B;AAE7B;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;CACJ,CAAC;AA4HX;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAsFX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAC;AAElC,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAC;AAKlC,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,KAAK,CAAC,CAAC,sCAA8B,EAAE,sCAA8B,CAAC,CAAC,CAAC;AAE9E,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AASD,gBAAgB;AAC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ACtC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAClC,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -55,7 +55,7 @@ export type AgentThoughtStreamingEventFunction = {
|
|
|
55
55
|
*/
|
|
56
56
|
arguments?: string | undefined;
|
|
57
57
|
};
|
|
58
|
-
export type
|
|
58
|
+
export type AgentThoughtStreamingEventToolCalls = {
|
|
59
59
|
index?: number | undefined;
|
|
60
60
|
id?: string | undefined;
|
|
61
61
|
type?: AgentThoughtStreamingEventDataType | undefined;
|
|
@@ -72,7 +72,7 @@ export type AgentThoughtStreamingEventDataRole = ClosedEnum<typeof AgentThoughtS
|
|
|
72
72
|
/**
|
|
73
73
|
* If the audio output modality is requested, this object contains data about the audio response from the model.
|
|
74
74
|
*/
|
|
75
|
-
export type
|
|
75
|
+
export type AgentThoughtStreamingEventAudio = {
|
|
76
76
|
id: string;
|
|
77
77
|
expiresAt: number;
|
|
78
78
|
data: string;
|
|
@@ -84,7 +84,7 @@ export type Audio = {
|
|
|
84
84
|
export type AgentThoughtStreamingEventMessage = {
|
|
85
85
|
content?: string | null | undefined;
|
|
86
86
|
refusal?: string | null | undefined;
|
|
87
|
-
toolCalls?: Array<
|
|
87
|
+
toolCalls?: Array<AgentThoughtStreamingEventToolCalls> | undefined;
|
|
88
88
|
role?: AgentThoughtStreamingEventDataRole | undefined;
|
|
89
89
|
/**
|
|
90
90
|
* Internal thought process of the model
|
|
@@ -101,7 +101,7 @@ export type AgentThoughtStreamingEventMessage = {
|
|
|
101
101
|
/**
|
|
102
102
|
* If the audio output modality is requested, this object contains data about the audio response from the model.
|
|
103
103
|
*/
|
|
104
|
-
audio?:
|
|
104
|
+
audio?: AgentThoughtStreamingEventAudio | null | undefined;
|
|
105
105
|
};
|
|
106
106
|
export type TopLogprobs = {
|
|
107
107
|
/**
|
|
@@ -117,7 +117,7 @@ export type TopLogprobs = {
|
|
|
117
117
|
*/
|
|
118
118
|
bytes: Array<number> | null;
|
|
119
119
|
};
|
|
120
|
-
export type
|
|
120
|
+
export type AgentThoughtStreamingEventContent = {
|
|
121
121
|
/**
|
|
122
122
|
* The token.
|
|
123
123
|
*/
|
|
@@ -174,7 +174,7 @@ export type Logprobs = {
|
|
|
174
174
|
/**
|
|
175
175
|
* A list of message content tokens with log probability information.
|
|
176
176
|
*/
|
|
177
|
-
content: Array<
|
|
177
|
+
content: Array<AgentThoughtStreamingEventContent> | null;
|
|
178
178
|
/**
|
|
179
179
|
* A list of message refusal tokens with log probability information.
|
|
180
180
|
*/
|
|
@@ -276,13 +276,13 @@ export declare const AgentThoughtStreamingEventDataType$inboundSchema: z.ZodNati
|
|
|
276
276
|
export declare const AgentThoughtStreamingEventFunction$inboundSchema: z.ZodType<AgentThoughtStreamingEventFunction, z.ZodTypeDef, unknown>;
|
|
277
277
|
export declare function agentThoughtStreamingEventFunctionFromJSON(jsonString: string): SafeParseResult<AgentThoughtStreamingEventFunction, SDKValidationError>;
|
|
278
278
|
/** @internal */
|
|
279
|
-
export declare const
|
|
280
|
-
export declare function
|
|
279
|
+
export declare const AgentThoughtStreamingEventToolCalls$inboundSchema: z.ZodType<AgentThoughtStreamingEventToolCalls, z.ZodTypeDef, unknown>;
|
|
280
|
+
export declare function agentThoughtStreamingEventToolCallsFromJSON(jsonString: string): SafeParseResult<AgentThoughtStreamingEventToolCalls, SDKValidationError>;
|
|
281
281
|
/** @internal */
|
|
282
282
|
export declare const AgentThoughtStreamingEventDataRole$inboundSchema: z.ZodNativeEnum<typeof AgentThoughtStreamingEventDataRole>;
|
|
283
283
|
/** @internal */
|
|
284
|
-
export declare const
|
|
285
|
-
export declare function
|
|
284
|
+
export declare const AgentThoughtStreamingEventAudio$inboundSchema: z.ZodType<AgentThoughtStreamingEventAudio, z.ZodTypeDef, unknown>;
|
|
285
|
+
export declare function agentThoughtStreamingEventAudioFromJSON(jsonString: string): SafeParseResult<AgentThoughtStreamingEventAudio, SDKValidationError>;
|
|
286
286
|
/** @internal */
|
|
287
287
|
export declare const AgentThoughtStreamingEventMessage$inboundSchema: z.ZodType<AgentThoughtStreamingEventMessage, z.ZodTypeDef, unknown>;
|
|
288
288
|
export declare function agentThoughtStreamingEventMessageFromJSON(jsonString: string): SafeParseResult<AgentThoughtStreamingEventMessage, SDKValidationError>;
|
|
@@ -290,8 +290,8 @@ export declare function agentThoughtStreamingEventMessageFromJSON(jsonString: st
|
|
|
290
290
|
export declare const TopLogprobs$inboundSchema: z.ZodType<TopLogprobs, z.ZodTypeDef, unknown>;
|
|
291
291
|
export declare function topLogprobsFromJSON(jsonString: string): SafeParseResult<TopLogprobs, SDKValidationError>;
|
|
292
292
|
/** @internal */
|
|
293
|
-
export declare const
|
|
294
|
-
export declare function
|
|
293
|
+
export declare const AgentThoughtStreamingEventContent$inboundSchema: z.ZodType<AgentThoughtStreamingEventContent, z.ZodTypeDef, unknown>;
|
|
294
|
+
export declare function agentThoughtStreamingEventContentFromJSON(jsonString: string): SafeParseResult<AgentThoughtStreamingEventContent, SDKValidationError>;
|
|
295
295
|
/** @internal */
|
|
296
296
|
export declare const AgentThoughtStreamingEventTopLogprobs$inboundSchema: z.ZodType<AgentThoughtStreamingEventTopLogprobs, z.ZodTypeDef, unknown>;
|
|
297
297
|
export declare function agentThoughtStreamingEventTopLogprobsFromJSON(jsonString: string): SafeParseResult<AgentThoughtStreamingEventTopLogprobs, SDKValidationError>;
|