@orq-ai/node 3.13.10 → 3.13.12
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 +107 -93
- package/bin/mcp-server.js +44131 -41116
- package/bin/mcp-server.js.map +118 -99
- package/docs/sdks/agents/README.md +566 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +18 -0
- package/funcs/agentsCreate.d.ts.map +1 -0
- package/funcs/agentsCreate.js +120 -0
- package/funcs/agentsCreate.js.map +1 -0
- package/funcs/agentsDelete.d.ts +18 -0
- package/funcs/agentsDelete.d.ts.map +1 -0
- package/funcs/agentsDelete.js +124 -0
- package/funcs/agentsDelete.js.map +1 -0
- package/funcs/agentsInvoke.d.ts +17 -0
- package/funcs/agentsInvoke.d.ts.map +1 -0
- package/funcs/agentsInvoke.js +120 -0
- package/funcs/agentsInvoke.js.map +1 -0
- package/funcs/agentsStream.d.ts +19 -0
- package/funcs/agentsStream.d.ts.map +1 -0
- package/funcs/agentsStream.js +134 -0
- package/funcs/agentsStream.js.map +1 -0
- package/funcs/agentsUpdate.d.ts +18 -0
- package/funcs/agentsUpdate.d.ts.map +1 -0
- package/funcs/agentsUpdate.js +124 -0
- package/funcs/agentsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +18 -1
- package/lib/env.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +8 -0
- package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsCreate.js +64 -0
- package/mcp-server/tools/agentsCreate.js.map +1 -0
- package/mcp-server/tools/agentsDelete.d.ts +8 -0
- package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
- package/mcp-server/tools/agentsDelete.js +63 -0
- package/mcp-server/tools/agentsDelete.js.map +1 -0
- package/mcp-server/tools/agentsInvoke.d.ts +8 -0
- package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/agentsInvoke.js +64 -0
- package/mcp-server/tools/agentsInvoke.js.map +1 -0
- package/mcp-server/tools/agentsStream.d.ts +8 -0
- package/mcp-server/tools/agentsStream.d.ts.map +1 -0
- package/mcp-server/tools/agentsStream.js +64 -0
- package/mcp-server/tools/agentsStream.js.map +1 -0
- package/mcp-server/tools/agentsUpdate.d.ts +8 -0
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/agentsUpdate.js +64 -0
- package/mcp-server/tools/agentsUpdate.js.map +1 -0
- package/models/errors/createagent.d.ts +41 -0
- package/models/errors/createagent.d.ts.map +1 -0
- package/models/errors/createagent.js +85 -0
- package/models/errors/createagent.js.map +1 -0
- package/models/errors/deleteagent.d.ts +41 -0
- package/models/errors/deleteagent.d.ts.map +1 -0
- package/models/errors/deleteagent.js +85 -0
- package/models/errors/deleteagent.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +4 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/streamagent.d.ts +41 -0
- package/models/errors/streamagent.d.ts.map +1 -0
- package/models/errors/streamagent.js +85 -0
- package/models/errors/streamagent.js.map +1 -0
- package/models/errors/updateagent.d.ts +41 -0
- package/models/errors/updateagent.d.ts.map +1 -0
- package/models/errors/updateagent.js +85 -0
- package/models/errors/updateagent.js.map +1 -0
- package/models/operations/createagent.d.ts +1504 -0
- package/models/operations/createagent.d.ts.map +1 -0
- package/models/operations/createagent.js +1530 -0
- package/models/operations/createagent.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +20 -20
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +34 -34
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deleteagent.d.ts +32 -0
- package/models/operations/deleteagent.d.ts.map +1 -0
- package/models/operations/deleteagent.js +78 -0
- package/models/operations/deleteagent.js.map +1 -0
- package/models/operations/duplicatetool.d.ts +10 -10
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +20 -20
- package/models/operations/duplicatetool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +44 -175
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +51 -184
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +10 -10
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +20 -20
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +912 -0
- package/models/operations/invokeagent.d.ts.map +1 -0
- package/models/operations/invokeagent.js +824 -0
- package/models/operations/invokeagent.js.map +1 -0
- package/models/operations/listagents.d.ts +6 -137
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -139
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +5 -0
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +2 -0
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.d.ts +10 -10
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +20 -20
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.d.ts +640 -721
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +817 -928
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +676 -0
- package/models/operations/streamagent.d.ts.map +1 -0
- package/models/operations/streamagent.js +670 -0
- package/models/operations/streamagent.js.map +1 -0
- package/models/operations/streamrunagent.d.ts +567 -648
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +721 -835
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +1515 -0
- package/models/operations/updateagent.d.ts.map +1 -0
- package/models/operations/updateagent.js +1576 -0
- package/models/operations/updateagent.js.map +1 -0
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- 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.d.ts +18 -18
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +36 -36
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/README.md +103 -94
- package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/env.ts +20 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +7 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/components/deployments.ts +6 -6
- package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +14 -14
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
- package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
- package/packages/orq-rc/src/models/operations/getalltools.ts +30 -30
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
- package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +11 -11
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +11 -11
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
- package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
- package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
- package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +14 -14
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
- package/packages/orq-rc/src/sdk/agents.ts +54 -0
- package/sdk/agents.d.ts +35 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +50 -0
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsCreate.ts +172 -0
- package/src/funcs/agentsDelete.ts +176 -0
- package/src/funcs/agentsInvoke.ts +167 -0
- package/src/funcs/agentsStream.ts +191 -0
- package/src/funcs/agentsUpdate.ts +176 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +20 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/src/mcp-server/tools/agentsInvoke.ts +37 -0
- package/src/mcp-server/tools/agentsStream.ts +37 -0
- package/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/src/models/errors/createagent.ts +80 -0
- package/src/models/errors/deleteagent.ts +80 -0
- package/src/models/errors/index.ts +4 -0
- package/src/models/errors/streamagent.ts +80 -0
- package/src/models/errors/updateagent.ts +80 -0
- package/src/models/operations/createagent.ts +3021 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +54 -54
- package/src/models/operations/deleteagent.ts +78 -0
- package/src/models/operations/duplicatetool.ts +30 -30
- 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/getagent.ts +87 -387
- package/src/models/operations/getalltools.ts +30 -30
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/invokeagent.ts +1569 -0
- package/src/models/operations/listagents.ts +8 -321
- package/src/models/operations/listagenttasks.ts +7 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +30 -30
- package/src/models/operations/runagent.ts +1441 -1488
- package/src/models/operations/streamagent.ts +1367 -0
- package/src/models/operations/streamrunagent.ts +1542 -1657
- package/src/models/operations/updateagent.ts +3227 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- 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 +60 -60
- package/src/sdk/agents.ts +90 -0
|
@@ -45,7 +45,7 @@ export type GetAgentToolApprovalRequired = ClosedEnum<
|
|
|
45
45
|
typeof GetAgentToolApprovalRequired
|
|
46
46
|
>;
|
|
47
47
|
|
|
48
|
-
export type
|
|
48
|
+
export type GetAgentConditions = {
|
|
49
49
|
/**
|
|
50
50
|
* The argument of the tool call to evaluate
|
|
51
51
|
*/
|
|
@@ -65,10 +65,14 @@ export type GetAgentTools = {
|
|
|
65
65
|
* The id of the resource
|
|
66
66
|
*/
|
|
67
67
|
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Optional tool key for custom tools
|
|
70
|
+
*/
|
|
71
|
+
key?: string | undefined;
|
|
68
72
|
actionType: string;
|
|
69
73
|
displayName?: string | undefined;
|
|
70
74
|
requiresApproval?: boolean | undefined;
|
|
71
|
-
conditions?: Array<
|
|
75
|
+
conditions?: Array<GetAgentConditions> | undefined;
|
|
72
76
|
/**
|
|
73
77
|
* The id of the resource
|
|
74
78
|
*/
|
|
@@ -129,71 +133,25 @@ export type GetAgentTeamOfAgents = {
|
|
|
129
133
|
role?: string | undefined;
|
|
130
134
|
};
|
|
131
135
|
|
|
132
|
-
export type
|
|
136
|
+
export type GetAgentMetrics = {
|
|
133
137
|
totalCost?: number | undefined;
|
|
134
138
|
};
|
|
135
139
|
|
|
136
|
-
export const GetAgentKnowledgeBaseConfigurationType = {
|
|
137
|
-
Query: "query",
|
|
138
|
-
} as const;
|
|
139
|
-
export type GetAgentKnowledgeBaseConfigurationType = ClosedEnum<
|
|
140
|
-
typeof GetAgentKnowledgeBaseConfigurationType
|
|
141
|
-
>;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Defines the configuration settings for a static query.
|
|
145
|
-
*/
|
|
146
|
-
export type GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery = {
|
|
147
|
-
type: GetAgentKnowledgeBaseConfigurationType;
|
|
148
|
-
query: string;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
export const GetAgentKnowledgeBaseConfigurationAgentsType = {
|
|
152
|
-
LastUserMessage: "last_user_message",
|
|
153
|
-
} as const;
|
|
154
|
-
export type GetAgentKnowledgeBaseConfigurationAgentsType = ClosedEnum<
|
|
155
|
-
typeof GetAgentKnowledgeBaseConfigurationAgentsType
|
|
156
|
-
>;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Defines the configuration settings for a last user message type retrieval.
|
|
160
|
-
*/
|
|
161
|
-
export type GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage = {
|
|
162
|
-
type: GetAgentKnowledgeBaseConfigurationAgentsType;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
167
|
-
*/
|
|
168
|
-
export type GetAgentKnowledgeBaseConfiguration =
|
|
169
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
170
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
|
|
171
|
-
|
|
172
140
|
export type GetAgentKnowledgeBases = {
|
|
173
141
|
/**
|
|
174
|
-
*
|
|
175
|
-
*/
|
|
176
|
-
id?: string | undefined;
|
|
177
|
-
/**
|
|
178
|
-
* The id of the resource
|
|
142
|
+
* Unique identifier of the knowledge base to search
|
|
179
143
|
*/
|
|
180
144
|
knowledgeId: string;
|
|
181
|
-
/**
|
|
182
|
-
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
183
|
-
*/
|
|
184
|
-
configuration:
|
|
185
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
186
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
|
|
187
145
|
};
|
|
188
146
|
|
|
189
|
-
export const
|
|
147
|
+
export const GetAgentHiddenPanels = {
|
|
190
148
|
Model: "model",
|
|
191
149
|
Tools: "tools",
|
|
192
150
|
KnowledgeBases: "knowledge_bases",
|
|
193
151
|
Variables: "variables",
|
|
194
152
|
RuntimeConstraints: "runtime_constraints",
|
|
195
153
|
} as const;
|
|
196
|
-
export type
|
|
154
|
+
export type GetAgentHiddenPanels = ClosedEnum<typeof GetAgentHiddenPanels>;
|
|
197
155
|
|
|
198
156
|
/**
|
|
199
157
|
* Agent retrieved successfully
|
|
@@ -233,7 +191,7 @@ export type GetAgentResponseBody = {
|
|
|
233
191
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
234
192
|
*/
|
|
235
193
|
teamOfAgents: Array<GetAgentTeamOfAgents>;
|
|
236
|
-
metrics?:
|
|
194
|
+
metrics?: GetAgentMetrics | undefined;
|
|
237
195
|
/**
|
|
238
196
|
* Extracted variables from agent instructions
|
|
239
197
|
*/
|
|
@@ -245,7 +203,7 @@ export type GetAgentResponseBody = {
|
|
|
245
203
|
/**
|
|
246
204
|
* List of hidden collapsed panels in configuration. Duplicates are not allowed.
|
|
247
205
|
*/
|
|
248
|
-
hiddenPanels?: Array<
|
|
206
|
+
hiddenPanels?: Array<GetAgentHiddenPanels> | undefined;
|
|
249
207
|
};
|
|
250
208
|
|
|
251
209
|
/** @internal */
|
|
@@ -351,8 +309,8 @@ export namespace GetAgentToolApprovalRequired$ {
|
|
|
351
309
|
}
|
|
352
310
|
|
|
353
311
|
/** @internal */
|
|
354
|
-
export const
|
|
355
|
-
|
|
312
|
+
export const GetAgentConditions$inboundSchema: z.ZodType<
|
|
313
|
+
GetAgentConditions,
|
|
356
314
|
z.ZodTypeDef,
|
|
357
315
|
unknown
|
|
358
316
|
> = z.object({
|
|
@@ -362,17 +320,17 @@ export const Conditions$inboundSchema: z.ZodType<
|
|
|
362
320
|
});
|
|
363
321
|
|
|
364
322
|
/** @internal */
|
|
365
|
-
export type
|
|
323
|
+
export type GetAgentConditions$Outbound = {
|
|
366
324
|
condition: string;
|
|
367
325
|
operator: string;
|
|
368
326
|
value: string;
|
|
369
327
|
};
|
|
370
328
|
|
|
371
329
|
/** @internal */
|
|
372
|
-
export const
|
|
373
|
-
|
|
330
|
+
export const GetAgentConditions$outboundSchema: z.ZodType<
|
|
331
|
+
GetAgentConditions$Outbound,
|
|
374
332
|
z.ZodTypeDef,
|
|
375
|
-
|
|
333
|
+
GetAgentConditions
|
|
376
334
|
> = z.object({
|
|
377
335
|
condition: z.string(),
|
|
378
336
|
operator: z.string(),
|
|
@@ -383,26 +341,30 @@ export const Conditions$outboundSchema: z.ZodType<
|
|
|
383
341
|
* @internal
|
|
384
342
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
385
343
|
*/
|
|
386
|
-
export namespace
|
|
387
|
-
/** @deprecated use `
|
|
388
|
-
export const inboundSchema =
|
|
389
|
-
/** @deprecated use `
|
|
390
|
-
export const outboundSchema =
|
|
391
|
-
/** @deprecated use `
|
|
392
|
-
export type Outbound =
|
|
344
|
+
export namespace GetAgentConditions$ {
|
|
345
|
+
/** @deprecated use `GetAgentConditions$inboundSchema` instead. */
|
|
346
|
+
export const inboundSchema = GetAgentConditions$inboundSchema;
|
|
347
|
+
/** @deprecated use `GetAgentConditions$outboundSchema` instead. */
|
|
348
|
+
export const outboundSchema = GetAgentConditions$outboundSchema;
|
|
349
|
+
/** @deprecated use `GetAgentConditions$Outbound` instead. */
|
|
350
|
+
export type Outbound = GetAgentConditions$Outbound;
|
|
393
351
|
}
|
|
394
352
|
|
|
395
|
-
export function
|
|
396
|
-
|
|
353
|
+
export function getAgentConditionsToJSON(
|
|
354
|
+
getAgentConditions: GetAgentConditions,
|
|
355
|
+
): string {
|
|
356
|
+
return JSON.stringify(
|
|
357
|
+
GetAgentConditions$outboundSchema.parse(getAgentConditions),
|
|
358
|
+
);
|
|
397
359
|
}
|
|
398
360
|
|
|
399
|
-
export function
|
|
361
|
+
export function getAgentConditionsFromJSON(
|
|
400
362
|
jsonString: string,
|
|
401
|
-
): SafeParseResult<
|
|
363
|
+
): SafeParseResult<GetAgentConditions, SDKValidationError> {
|
|
402
364
|
return safeParse(
|
|
403
365
|
jsonString,
|
|
404
|
-
(x) =>
|
|
405
|
-
`Failed to parse '
|
|
366
|
+
(x) => GetAgentConditions$inboundSchema.parse(JSON.parse(x)),
|
|
367
|
+
`Failed to parse 'GetAgentConditions' from JSON`,
|
|
406
368
|
);
|
|
407
369
|
}
|
|
408
370
|
|
|
@@ -413,10 +375,12 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
413
375
|
unknown
|
|
414
376
|
> = z.object({
|
|
415
377
|
id: z.string(),
|
|
378
|
+
key: z.string().optional(),
|
|
416
379
|
action_type: z.string(),
|
|
417
380
|
display_name: z.string().optional(),
|
|
418
381
|
requires_approval: z.boolean().default(false),
|
|
419
|
-
conditions: z.array(z.lazy(() =>
|
|
382
|
+
conditions: z.array(z.lazy(() => GetAgentConditions$inboundSchema))
|
|
383
|
+
.optional(),
|
|
420
384
|
mcpServer: z.string().optional(),
|
|
421
385
|
timeout: z.number().default(120),
|
|
422
386
|
}).transform((v) => {
|
|
@@ -430,10 +394,11 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
430
394
|
/** @internal */
|
|
431
395
|
export type GetAgentTools$Outbound = {
|
|
432
396
|
id: string;
|
|
397
|
+
key?: string | undefined;
|
|
433
398
|
action_type: string;
|
|
434
399
|
display_name?: string | undefined;
|
|
435
400
|
requires_approval: boolean;
|
|
436
|
-
conditions?: Array<
|
|
401
|
+
conditions?: Array<GetAgentConditions$Outbound> | undefined;
|
|
437
402
|
mcpServer?: string | undefined;
|
|
438
403
|
timeout: number;
|
|
439
404
|
};
|
|
@@ -445,10 +410,12 @@ export const GetAgentTools$outboundSchema: z.ZodType<
|
|
|
445
410
|
GetAgentTools
|
|
446
411
|
> = z.object({
|
|
447
412
|
id: z.string(),
|
|
413
|
+
key: z.string().optional(),
|
|
448
414
|
actionType: z.string(),
|
|
449
415
|
displayName: z.string().optional(),
|
|
450
416
|
requiresApproval: z.boolean().default(false),
|
|
451
|
-
conditions: z.array(z.lazy(() =>
|
|
417
|
+
conditions: z.array(z.lazy(() => GetAgentConditions$outboundSchema))
|
|
418
|
+
.optional(),
|
|
452
419
|
mcpServer: z.string().optional(),
|
|
453
420
|
timeout: z.number().default(120),
|
|
454
421
|
}).transform((v) => {
|
|
@@ -697,25 +664,28 @@ export function getAgentTeamOfAgentsFromJSON(
|
|
|
697
664
|
}
|
|
698
665
|
|
|
699
666
|
/** @internal */
|
|
700
|
-
export const
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
667
|
+
export const GetAgentMetrics$inboundSchema: z.ZodType<
|
|
668
|
+
GetAgentMetrics,
|
|
669
|
+
z.ZodTypeDef,
|
|
670
|
+
unknown
|
|
671
|
+
> = z.object({
|
|
672
|
+
total_cost: z.number().default(0),
|
|
673
|
+
}).transform((v) => {
|
|
674
|
+
return remap$(v, {
|
|
675
|
+
"total_cost": "totalCost",
|
|
707
676
|
});
|
|
677
|
+
});
|
|
708
678
|
|
|
709
679
|
/** @internal */
|
|
710
|
-
export type
|
|
680
|
+
export type GetAgentMetrics$Outbound = {
|
|
711
681
|
total_cost: number;
|
|
712
682
|
};
|
|
713
683
|
|
|
714
684
|
/** @internal */
|
|
715
|
-
export const
|
|
716
|
-
|
|
685
|
+
export const GetAgentMetrics$outboundSchema: z.ZodType<
|
|
686
|
+
GetAgentMetrics$Outbound,
|
|
717
687
|
z.ZodTypeDef,
|
|
718
|
-
|
|
688
|
+
GetAgentMetrics
|
|
719
689
|
> = z.object({
|
|
720
690
|
totalCost: z.number().default(0),
|
|
721
691
|
}).transform((v) => {
|
|
@@ -728,278 +698,28 @@ export const Metrics$outboundSchema: z.ZodType<
|
|
|
728
698
|
* @internal
|
|
729
699
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
730
700
|
*/
|
|
731
|
-
export namespace
|
|
732
|
-
/** @deprecated use `
|
|
733
|
-
export const inboundSchema =
|
|
734
|
-
/** @deprecated use `
|
|
735
|
-
export const outboundSchema =
|
|
736
|
-
/** @deprecated use `
|
|
737
|
-
export type Outbound =
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
export function metricsToJSON(metrics: Metrics): string {
|
|
741
|
-
return JSON.stringify(Metrics$outboundSchema.parse(metrics));
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
export function metricsFromJSON(
|
|
745
|
-
jsonString: string,
|
|
746
|
-
): SafeParseResult<Metrics, SDKValidationError> {
|
|
747
|
-
return safeParse(
|
|
748
|
-
jsonString,
|
|
749
|
-
(x) => Metrics$inboundSchema.parse(JSON.parse(x)),
|
|
750
|
-
`Failed to parse 'Metrics' from JSON`,
|
|
751
|
-
);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
/** @internal */
|
|
755
|
-
export const GetAgentKnowledgeBaseConfigurationType$inboundSchema:
|
|
756
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationType> = z.nativeEnum(
|
|
757
|
-
GetAgentKnowledgeBaseConfigurationType,
|
|
758
|
-
);
|
|
759
|
-
|
|
760
|
-
/** @internal */
|
|
761
|
-
export const GetAgentKnowledgeBaseConfigurationType$outboundSchema:
|
|
762
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationType> =
|
|
763
|
-
GetAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* @internal
|
|
767
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
768
|
-
*/
|
|
769
|
-
export namespace GetAgentKnowledgeBaseConfigurationType$ {
|
|
770
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
771
|
-
export const inboundSchema =
|
|
772
|
-
GetAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
773
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
774
|
-
export const outboundSchema =
|
|
775
|
-
GetAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
/** @internal */
|
|
779
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema:
|
|
780
|
-
z.ZodType<
|
|
781
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
782
|
-
z.ZodTypeDef,
|
|
783
|
-
unknown
|
|
784
|
-
> = z.object({
|
|
785
|
-
type: GetAgentKnowledgeBaseConfigurationType$inboundSchema,
|
|
786
|
-
query: z.string(),
|
|
787
|
-
});
|
|
788
|
-
|
|
789
|
-
/** @internal */
|
|
790
|
-
export type GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound =
|
|
791
|
-
{
|
|
792
|
-
type: string;
|
|
793
|
-
query: string;
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
/** @internal */
|
|
797
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema:
|
|
798
|
-
z.ZodType<
|
|
799
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound,
|
|
800
|
-
z.ZodTypeDef,
|
|
801
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
802
|
-
> = z.object({
|
|
803
|
-
type: GetAgentKnowledgeBaseConfigurationType$outboundSchema,
|
|
804
|
-
query: z.string(),
|
|
805
|
-
});
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* @internal
|
|
809
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
810
|
-
*/
|
|
811
|
-
export namespace GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$ {
|
|
812
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
813
|
-
export const inboundSchema =
|
|
814
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema;
|
|
815
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
816
|
-
export const outboundSchema =
|
|
817
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema;
|
|
818
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
|
|
819
|
-
export type Outbound =
|
|
820
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
|
|
701
|
+
export namespace GetAgentMetrics$ {
|
|
702
|
+
/** @deprecated use `GetAgentMetrics$inboundSchema` instead. */
|
|
703
|
+
export const inboundSchema = GetAgentMetrics$inboundSchema;
|
|
704
|
+
/** @deprecated use `GetAgentMetrics$outboundSchema` instead. */
|
|
705
|
+
export const outboundSchema = GetAgentMetrics$outboundSchema;
|
|
706
|
+
/** @deprecated use `GetAgentMetrics$Outbound` instead. */
|
|
707
|
+
export type Outbound = GetAgentMetrics$Outbound;
|
|
821
708
|
}
|
|
822
709
|
|
|
823
|
-
export function
|
|
824
|
-
|
|
825
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
710
|
+
export function getAgentMetricsToJSON(
|
|
711
|
+
getAgentMetrics: GetAgentMetrics,
|
|
826
712
|
): string {
|
|
827
|
-
return JSON.stringify(
|
|
828
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
829
|
-
.parse(getAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery),
|
|
830
|
-
);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
export function getAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(
|
|
834
|
-
jsonString: string,
|
|
835
|
-
): SafeParseResult<
|
|
836
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
837
|
-
SDKValidationError
|
|
838
|
-
> {
|
|
839
|
-
return safeParse(
|
|
840
|
-
jsonString,
|
|
841
|
-
(x) =>
|
|
842
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
843
|
-
.parse(JSON.parse(x)),
|
|
844
|
-
`Failed to parse 'GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery' from JSON`,
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
/** @internal */
|
|
849
|
-
export const GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema:
|
|
850
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationAgentsType> = z
|
|
851
|
-
.nativeEnum(GetAgentKnowledgeBaseConfigurationAgentsType);
|
|
852
|
-
|
|
853
|
-
/** @internal */
|
|
854
|
-
export const GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema:
|
|
855
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationAgentsType> =
|
|
856
|
-
GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* @internal
|
|
860
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
861
|
-
*/
|
|
862
|
-
export namespace GetAgentKnowledgeBaseConfigurationAgentsType$ {
|
|
863
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
|
|
864
|
-
export const inboundSchema =
|
|
865
|
-
GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
866
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
|
|
867
|
-
export const outboundSchema =
|
|
868
|
-
GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
/** @internal */
|
|
872
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema:
|
|
873
|
-
z.ZodType<
|
|
874
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
875
|
-
z.ZodTypeDef,
|
|
876
|
-
unknown
|
|
877
|
-
> = z.object({
|
|
878
|
-
type: GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema,
|
|
879
|
-
});
|
|
880
|
-
|
|
881
|
-
/** @internal */
|
|
882
|
-
export type GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound =
|
|
883
|
-
{
|
|
884
|
-
type: string;
|
|
885
|
-
};
|
|
886
|
-
|
|
887
|
-
/** @internal */
|
|
888
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema:
|
|
889
|
-
z.ZodType<
|
|
890
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound,
|
|
891
|
-
z.ZodTypeDef,
|
|
892
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage
|
|
893
|
-
> = z.object({
|
|
894
|
-
type: GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema,
|
|
895
|
-
});
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* @internal
|
|
899
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
900
|
-
*/
|
|
901
|
-
export namespace GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$ {
|
|
902
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema` instead. */
|
|
903
|
-
export const inboundSchema =
|
|
904
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema;
|
|
905
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema` instead. */
|
|
906
|
-
export const outboundSchema =
|
|
907
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema;
|
|
908
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
|
|
909
|
-
export type Outbound =
|
|
910
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
export function getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(
|
|
914
|
-
getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage:
|
|
915
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
916
|
-
): string {
|
|
917
|
-
return JSON.stringify(
|
|
918
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
919
|
-
.parse(getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage),
|
|
920
|
-
);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
export function getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(
|
|
924
|
-
jsonString: string,
|
|
925
|
-
): SafeParseResult<
|
|
926
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
927
|
-
SDKValidationError
|
|
928
|
-
> {
|
|
929
|
-
return safeParse(
|
|
930
|
-
jsonString,
|
|
931
|
-
(x) =>
|
|
932
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
933
|
-
.parse(JSON.parse(x)),
|
|
934
|
-
`Failed to parse 'GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage' from JSON`,
|
|
935
|
-
);
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
/** @internal */
|
|
939
|
-
export const GetAgentKnowledgeBaseConfiguration$inboundSchema: z.ZodType<
|
|
940
|
-
GetAgentKnowledgeBaseConfiguration,
|
|
941
|
-
z.ZodTypeDef,
|
|
942
|
-
unknown
|
|
943
|
-
> = z.union([
|
|
944
|
-
z.lazy(() =>
|
|
945
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
946
|
-
),
|
|
947
|
-
z.lazy(() =>
|
|
948
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
949
|
-
),
|
|
950
|
-
]);
|
|
951
|
-
|
|
952
|
-
/** @internal */
|
|
953
|
-
export type GetAgentKnowledgeBaseConfiguration$Outbound =
|
|
954
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
955
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
956
|
-
|
|
957
|
-
/** @internal */
|
|
958
|
-
export const GetAgentKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
959
|
-
GetAgentKnowledgeBaseConfiguration$Outbound,
|
|
960
|
-
z.ZodTypeDef,
|
|
961
|
-
GetAgentKnowledgeBaseConfiguration
|
|
962
|
-
> = z.union([
|
|
963
|
-
z.lazy(() =>
|
|
964
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
965
|
-
),
|
|
966
|
-
z.lazy(() =>
|
|
967
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
968
|
-
),
|
|
969
|
-
]);
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
* @internal
|
|
973
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
974
|
-
*/
|
|
975
|
-
export namespace GetAgentKnowledgeBaseConfiguration$ {
|
|
976
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
977
|
-
export const inboundSchema = GetAgentKnowledgeBaseConfiguration$inboundSchema;
|
|
978
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
979
|
-
export const outboundSchema =
|
|
980
|
-
GetAgentKnowledgeBaseConfiguration$outboundSchema;
|
|
981
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfiguration$Outbound` instead. */
|
|
982
|
-
export type Outbound = GetAgentKnowledgeBaseConfiguration$Outbound;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
export function getAgentKnowledgeBaseConfigurationToJSON(
|
|
986
|
-
getAgentKnowledgeBaseConfiguration: GetAgentKnowledgeBaseConfiguration,
|
|
987
|
-
): string {
|
|
988
|
-
return JSON.stringify(
|
|
989
|
-
GetAgentKnowledgeBaseConfiguration$outboundSchema.parse(
|
|
990
|
-
getAgentKnowledgeBaseConfiguration,
|
|
991
|
-
),
|
|
992
|
-
);
|
|
713
|
+
return JSON.stringify(GetAgentMetrics$outboundSchema.parse(getAgentMetrics));
|
|
993
714
|
}
|
|
994
715
|
|
|
995
|
-
export function
|
|
716
|
+
export function getAgentMetricsFromJSON(
|
|
996
717
|
jsonString: string,
|
|
997
|
-
): SafeParseResult<
|
|
718
|
+
): SafeParseResult<GetAgentMetrics, SDKValidationError> {
|
|
998
719
|
return safeParse(
|
|
999
720
|
jsonString,
|
|
1000
|
-
(x) =>
|
|
1001
|
-
|
|
1002
|
-
`Failed to parse 'GetAgentKnowledgeBaseConfiguration' from JSON`,
|
|
721
|
+
(x) => GetAgentMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
722
|
+
`Failed to parse 'GetAgentMetrics' from JSON`,
|
|
1003
723
|
);
|
|
1004
724
|
}
|
|
1005
725
|
|
|
@@ -1009,16 +729,7 @@ export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1009
729
|
z.ZodTypeDef,
|
|
1010
730
|
unknown
|
|
1011
731
|
> = z.object({
|
|
1012
|
-
id: z.string().default("01K7M9PSXZ6ZYJVVE3SF9DSA77"),
|
|
1013
732
|
knowledge_id: z.string(),
|
|
1014
|
-
configuration: z.union([
|
|
1015
|
-
z.lazy(() =>
|
|
1016
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
1017
|
-
),
|
|
1018
|
-
z.lazy(() =>
|
|
1019
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1020
|
-
),
|
|
1021
|
-
]),
|
|
1022
733
|
}).transform((v) => {
|
|
1023
734
|
return remap$(v, {
|
|
1024
735
|
"knowledge_id": "knowledgeId",
|
|
@@ -1027,11 +738,7 @@ export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1027
738
|
|
|
1028
739
|
/** @internal */
|
|
1029
740
|
export type GetAgentKnowledgeBases$Outbound = {
|
|
1030
|
-
id: string;
|
|
1031
741
|
knowledge_id: string;
|
|
1032
|
-
configuration:
|
|
1033
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
1034
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1035
742
|
};
|
|
1036
743
|
|
|
1037
744
|
/** @internal */
|
|
@@ -1040,16 +747,7 @@ export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1040
747
|
z.ZodTypeDef,
|
|
1041
748
|
GetAgentKnowledgeBases
|
|
1042
749
|
> = z.object({
|
|
1043
|
-
id: z.string().default("01K7M9PSXZ6ZYJVVE3SF9DSA77"),
|
|
1044
750
|
knowledgeId: z.string(),
|
|
1045
|
-
configuration: z.union([
|
|
1046
|
-
z.lazy(() =>
|
|
1047
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
1048
|
-
),
|
|
1049
|
-
z.lazy(() =>
|
|
1050
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
1051
|
-
),
|
|
1052
|
-
]),
|
|
1053
751
|
}).transform((v) => {
|
|
1054
752
|
return remap$(v, {
|
|
1055
753
|
knowledgeId: "knowledge_id",
|
|
@@ -1088,22 +786,24 @@ export function getAgentKnowledgeBasesFromJSON(
|
|
|
1088
786
|
}
|
|
1089
787
|
|
|
1090
788
|
/** @internal */
|
|
1091
|
-
export const
|
|
1092
|
-
|
|
789
|
+
export const GetAgentHiddenPanels$inboundSchema: z.ZodNativeEnum<
|
|
790
|
+
typeof GetAgentHiddenPanels
|
|
791
|
+
> = z.nativeEnum(GetAgentHiddenPanels);
|
|
1093
792
|
|
|
1094
793
|
/** @internal */
|
|
1095
|
-
export const
|
|
1096
|
-
|
|
794
|
+
export const GetAgentHiddenPanels$outboundSchema: z.ZodNativeEnum<
|
|
795
|
+
typeof GetAgentHiddenPanels
|
|
796
|
+
> = GetAgentHiddenPanels$inboundSchema;
|
|
1097
797
|
|
|
1098
798
|
/**
|
|
1099
799
|
* @internal
|
|
1100
800
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1101
801
|
*/
|
|
1102
|
-
export namespace
|
|
1103
|
-
/** @deprecated use `
|
|
1104
|
-
export const inboundSchema =
|
|
1105
|
-
/** @deprecated use `
|
|
1106
|
-
export const outboundSchema =
|
|
802
|
+
export namespace GetAgentHiddenPanels$ {
|
|
803
|
+
/** @deprecated use `GetAgentHiddenPanels$inboundSchema` instead. */
|
|
804
|
+
export const inboundSchema = GetAgentHiddenPanels$inboundSchema;
|
|
805
|
+
/** @deprecated use `GetAgentHiddenPanels$outboundSchema` instead. */
|
|
806
|
+
export const outboundSchema = GetAgentHiddenPanels$outboundSchema;
|
|
1107
807
|
}
|
|
1108
808
|
|
|
1109
809
|
/** @internal */
|
|
@@ -1131,11 +831,11 @@ export const GetAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
1131
831
|
path: z.string(),
|
|
1132
832
|
memory_stores: z.array(z.string()),
|
|
1133
833
|
team_of_agents: z.array(z.lazy(() => GetAgentTeamOfAgents$inboundSchema)),
|
|
1134
|
-
metrics: z.lazy(() =>
|
|
834
|
+
metrics: z.lazy(() => GetAgentMetrics$inboundSchema).optional(),
|
|
1135
835
|
variables: z.record(z.any()).optional(),
|
|
1136
836
|
knowledge_bases: z.array(z.lazy(() => GetAgentKnowledgeBases$inboundSchema))
|
|
1137
837
|
.optional(),
|
|
1138
|
-
hidden_panels: z.array(
|
|
838
|
+
hidden_panels: z.array(GetAgentHiddenPanels$inboundSchema).optional(),
|
|
1139
839
|
}).transform((v) => {
|
|
1140
840
|
return remap$(v, {
|
|
1141
841
|
"_id": "id",
|
|
@@ -1173,7 +873,7 @@ export type GetAgentResponseBody$Outbound = {
|
|
|
1173
873
|
path: string;
|
|
1174
874
|
memory_stores: Array<string>;
|
|
1175
875
|
team_of_agents: Array<GetAgentTeamOfAgents$Outbound>;
|
|
1176
|
-
metrics?:
|
|
876
|
+
metrics?: GetAgentMetrics$Outbound | undefined;
|
|
1177
877
|
variables?: { [k: string]: any } | undefined;
|
|
1178
878
|
knowledge_bases?: Array<GetAgentKnowledgeBases$Outbound> | undefined;
|
|
1179
879
|
hidden_panels?: Array<string> | undefined;
|
|
@@ -1204,11 +904,11 @@ export const GetAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
1204
904
|
path: z.string(),
|
|
1205
905
|
memoryStores: z.array(z.string()),
|
|
1206
906
|
teamOfAgents: z.array(z.lazy(() => GetAgentTeamOfAgents$outboundSchema)),
|
|
1207
|
-
metrics: z.lazy(() =>
|
|
907
|
+
metrics: z.lazy(() => GetAgentMetrics$outboundSchema).optional(),
|
|
1208
908
|
variables: z.record(z.any()).optional(),
|
|
1209
909
|
knowledgeBases: z.array(z.lazy(() => GetAgentKnowledgeBases$outboundSchema))
|
|
1210
910
|
.optional(),
|
|
1211
|
-
hiddenPanels: z.array(
|
|
911
|
+
hiddenPanels: z.array(GetAgentHiddenPanels$outboundSchema).optional(),
|
|
1212
912
|
}).transform((v) => {
|
|
1213
913
|
return remap$(v, {
|
|
1214
914
|
id: "_id",
|