@orq-ai/node 3.13.9 → 3.13.11
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 +43652 -40649
- package/bin/mcp-server.js.map +117 -98
- 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 +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +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 +2 -2
- 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/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 +8 -8
- 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/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 +33 -33
- 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 +8 -8
- 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 +8 -8
- 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 +8 -8
- 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 +2 -2
- 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
|
|
@@ -227,7 +185,7 @@ export type GetAgentResponseBody = {
|
|
|
227
185
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
228
186
|
*/
|
|
229
187
|
teamOfAgents: Array<GetAgentTeamOfAgents>;
|
|
230
|
-
metrics?:
|
|
188
|
+
metrics?: GetAgentMetrics | undefined;
|
|
231
189
|
/**
|
|
232
190
|
* Extracted variables from agent instructions
|
|
233
191
|
*/
|
|
@@ -239,7 +197,7 @@ export type GetAgentResponseBody = {
|
|
|
239
197
|
/**
|
|
240
198
|
* List of hidden collapsed panels in configuration. Duplicates are not allowed.
|
|
241
199
|
*/
|
|
242
|
-
hiddenPanels?: Array<
|
|
200
|
+
hiddenPanels?: Array<GetAgentHiddenPanels> | undefined;
|
|
243
201
|
};
|
|
244
202
|
|
|
245
203
|
/** @internal */
|
|
@@ -345,8 +303,8 @@ export namespace GetAgentToolApprovalRequired$ {
|
|
|
345
303
|
}
|
|
346
304
|
|
|
347
305
|
/** @internal */
|
|
348
|
-
export const
|
|
349
|
-
|
|
306
|
+
export const GetAgentConditions$inboundSchema: z.ZodType<
|
|
307
|
+
GetAgentConditions,
|
|
350
308
|
z.ZodTypeDef,
|
|
351
309
|
unknown
|
|
352
310
|
> = z.object({
|
|
@@ -356,17 +314,17 @@ export const Conditions$inboundSchema: z.ZodType<
|
|
|
356
314
|
});
|
|
357
315
|
|
|
358
316
|
/** @internal */
|
|
359
|
-
export type
|
|
317
|
+
export type GetAgentConditions$Outbound = {
|
|
360
318
|
condition: string;
|
|
361
319
|
operator: string;
|
|
362
320
|
value: string;
|
|
363
321
|
};
|
|
364
322
|
|
|
365
323
|
/** @internal */
|
|
366
|
-
export const
|
|
367
|
-
|
|
324
|
+
export const GetAgentConditions$outboundSchema: z.ZodType<
|
|
325
|
+
GetAgentConditions$Outbound,
|
|
368
326
|
z.ZodTypeDef,
|
|
369
|
-
|
|
327
|
+
GetAgentConditions
|
|
370
328
|
> = z.object({
|
|
371
329
|
condition: z.string(),
|
|
372
330
|
operator: z.string(),
|
|
@@ -377,26 +335,30 @@ export const Conditions$outboundSchema: z.ZodType<
|
|
|
377
335
|
* @internal
|
|
378
336
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
379
337
|
*/
|
|
380
|
-
export namespace
|
|
381
|
-
/** @deprecated use `
|
|
382
|
-
export const inboundSchema =
|
|
383
|
-
/** @deprecated use `
|
|
384
|
-
export const outboundSchema =
|
|
385
|
-
/** @deprecated use `
|
|
386
|
-
export type Outbound =
|
|
338
|
+
export namespace GetAgentConditions$ {
|
|
339
|
+
/** @deprecated use `GetAgentConditions$inboundSchema` instead. */
|
|
340
|
+
export const inboundSchema = GetAgentConditions$inboundSchema;
|
|
341
|
+
/** @deprecated use `GetAgentConditions$outboundSchema` instead. */
|
|
342
|
+
export const outboundSchema = GetAgentConditions$outboundSchema;
|
|
343
|
+
/** @deprecated use `GetAgentConditions$Outbound` instead. */
|
|
344
|
+
export type Outbound = GetAgentConditions$Outbound;
|
|
387
345
|
}
|
|
388
346
|
|
|
389
|
-
export function
|
|
390
|
-
|
|
347
|
+
export function getAgentConditionsToJSON(
|
|
348
|
+
getAgentConditions: GetAgentConditions,
|
|
349
|
+
): string {
|
|
350
|
+
return JSON.stringify(
|
|
351
|
+
GetAgentConditions$outboundSchema.parse(getAgentConditions),
|
|
352
|
+
);
|
|
391
353
|
}
|
|
392
354
|
|
|
393
|
-
export function
|
|
355
|
+
export function getAgentConditionsFromJSON(
|
|
394
356
|
jsonString: string,
|
|
395
|
-
): SafeParseResult<
|
|
357
|
+
): SafeParseResult<GetAgentConditions, SDKValidationError> {
|
|
396
358
|
return safeParse(
|
|
397
359
|
jsonString,
|
|
398
|
-
(x) =>
|
|
399
|
-
`Failed to parse '
|
|
360
|
+
(x) => GetAgentConditions$inboundSchema.parse(JSON.parse(x)),
|
|
361
|
+
`Failed to parse 'GetAgentConditions' from JSON`,
|
|
400
362
|
);
|
|
401
363
|
}
|
|
402
364
|
|
|
@@ -407,10 +369,12 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
407
369
|
unknown
|
|
408
370
|
> = z.object({
|
|
409
371
|
id: z.string(),
|
|
372
|
+
key: z.string().optional(),
|
|
410
373
|
action_type: z.string(),
|
|
411
374
|
display_name: z.string().optional(),
|
|
412
375
|
requires_approval: z.boolean().default(false),
|
|
413
|
-
conditions: z.array(z.lazy(() =>
|
|
376
|
+
conditions: z.array(z.lazy(() => GetAgentConditions$inboundSchema))
|
|
377
|
+
.optional(),
|
|
414
378
|
mcpServer: z.string().optional(),
|
|
415
379
|
timeout: z.number().default(120),
|
|
416
380
|
}).transform((v) => {
|
|
@@ -424,10 +388,11 @@ export const GetAgentTools$inboundSchema: z.ZodType<
|
|
|
424
388
|
/** @internal */
|
|
425
389
|
export type GetAgentTools$Outbound = {
|
|
426
390
|
id: string;
|
|
391
|
+
key?: string | undefined;
|
|
427
392
|
action_type: string;
|
|
428
393
|
display_name?: string | undefined;
|
|
429
394
|
requires_approval: boolean;
|
|
430
|
-
conditions?: Array<
|
|
395
|
+
conditions?: Array<GetAgentConditions$Outbound> | undefined;
|
|
431
396
|
mcpServer?: string | undefined;
|
|
432
397
|
timeout: number;
|
|
433
398
|
};
|
|
@@ -439,10 +404,12 @@ export const GetAgentTools$outboundSchema: z.ZodType<
|
|
|
439
404
|
GetAgentTools
|
|
440
405
|
> = z.object({
|
|
441
406
|
id: z.string(),
|
|
407
|
+
key: z.string().optional(),
|
|
442
408
|
actionType: z.string(),
|
|
443
409
|
displayName: z.string().optional(),
|
|
444
410
|
requiresApproval: z.boolean().default(false),
|
|
445
|
-
conditions: z.array(z.lazy(() =>
|
|
411
|
+
conditions: z.array(z.lazy(() => GetAgentConditions$outboundSchema))
|
|
412
|
+
.optional(),
|
|
446
413
|
mcpServer: z.string().optional(),
|
|
447
414
|
timeout: z.number().default(120),
|
|
448
415
|
}).transform((v) => {
|
|
@@ -691,25 +658,28 @@ export function getAgentTeamOfAgentsFromJSON(
|
|
|
691
658
|
}
|
|
692
659
|
|
|
693
660
|
/** @internal */
|
|
694
|
-
export const
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
661
|
+
export const GetAgentMetrics$inboundSchema: z.ZodType<
|
|
662
|
+
GetAgentMetrics,
|
|
663
|
+
z.ZodTypeDef,
|
|
664
|
+
unknown
|
|
665
|
+
> = z.object({
|
|
666
|
+
total_cost: z.number().default(0),
|
|
667
|
+
}).transform((v) => {
|
|
668
|
+
return remap$(v, {
|
|
669
|
+
"total_cost": "totalCost",
|
|
701
670
|
});
|
|
671
|
+
});
|
|
702
672
|
|
|
703
673
|
/** @internal */
|
|
704
|
-
export type
|
|
674
|
+
export type GetAgentMetrics$Outbound = {
|
|
705
675
|
total_cost: number;
|
|
706
676
|
};
|
|
707
677
|
|
|
708
678
|
/** @internal */
|
|
709
|
-
export const
|
|
710
|
-
|
|
679
|
+
export const GetAgentMetrics$outboundSchema: z.ZodType<
|
|
680
|
+
GetAgentMetrics$Outbound,
|
|
711
681
|
z.ZodTypeDef,
|
|
712
|
-
|
|
682
|
+
GetAgentMetrics
|
|
713
683
|
> = z.object({
|
|
714
684
|
totalCost: z.number().default(0),
|
|
715
685
|
}).transform((v) => {
|
|
@@ -722,278 +692,28 @@ export const Metrics$outboundSchema: z.ZodType<
|
|
|
722
692
|
* @internal
|
|
723
693
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
724
694
|
*/
|
|
725
|
-
export namespace
|
|
726
|
-
/** @deprecated use `
|
|
727
|
-
export const inboundSchema =
|
|
728
|
-
/** @deprecated use `
|
|
729
|
-
export const outboundSchema =
|
|
730
|
-
/** @deprecated use `
|
|
731
|
-
export type Outbound =
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
export function metricsToJSON(metrics: Metrics): string {
|
|
735
|
-
return JSON.stringify(Metrics$outboundSchema.parse(metrics));
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
export function metricsFromJSON(
|
|
739
|
-
jsonString: string,
|
|
740
|
-
): SafeParseResult<Metrics, SDKValidationError> {
|
|
741
|
-
return safeParse(
|
|
742
|
-
jsonString,
|
|
743
|
-
(x) => Metrics$inboundSchema.parse(JSON.parse(x)),
|
|
744
|
-
`Failed to parse 'Metrics' from JSON`,
|
|
745
|
-
);
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
/** @internal */
|
|
749
|
-
export const GetAgentKnowledgeBaseConfigurationType$inboundSchema:
|
|
750
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationType> = z.nativeEnum(
|
|
751
|
-
GetAgentKnowledgeBaseConfigurationType,
|
|
752
|
-
);
|
|
753
|
-
|
|
754
|
-
/** @internal */
|
|
755
|
-
export const GetAgentKnowledgeBaseConfigurationType$outboundSchema:
|
|
756
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationType> =
|
|
757
|
-
GetAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* @internal
|
|
761
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
762
|
-
*/
|
|
763
|
-
export namespace GetAgentKnowledgeBaseConfigurationType$ {
|
|
764
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
765
|
-
export const inboundSchema =
|
|
766
|
-
GetAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
767
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
768
|
-
export const outboundSchema =
|
|
769
|
-
GetAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
/** @internal */
|
|
773
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema:
|
|
774
|
-
z.ZodType<
|
|
775
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
776
|
-
z.ZodTypeDef,
|
|
777
|
-
unknown
|
|
778
|
-
> = z.object({
|
|
779
|
-
type: GetAgentKnowledgeBaseConfigurationType$inboundSchema,
|
|
780
|
-
query: z.string(),
|
|
781
|
-
});
|
|
782
|
-
|
|
783
|
-
/** @internal */
|
|
784
|
-
export type GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound =
|
|
785
|
-
{
|
|
786
|
-
type: string;
|
|
787
|
-
query: string;
|
|
788
|
-
};
|
|
789
|
-
|
|
790
|
-
/** @internal */
|
|
791
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema:
|
|
792
|
-
z.ZodType<
|
|
793
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound,
|
|
794
|
-
z.ZodTypeDef,
|
|
795
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
796
|
-
> = z.object({
|
|
797
|
-
type: GetAgentKnowledgeBaseConfigurationType$outboundSchema,
|
|
798
|
-
query: z.string(),
|
|
799
|
-
});
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* @internal
|
|
803
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
804
|
-
*/
|
|
805
|
-
export namespace GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$ {
|
|
806
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
807
|
-
export const inboundSchema =
|
|
808
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema;
|
|
809
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
810
|
-
export const outboundSchema =
|
|
811
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema;
|
|
812
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
|
|
813
|
-
export type Outbound =
|
|
814
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
|
|
695
|
+
export namespace GetAgentMetrics$ {
|
|
696
|
+
/** @deprecated use `GetAgentMetrics$inboundSchema` instead. */
|
|
697
|
+
export const inboundSchema = GetAgentMetrics$inboundSchema;
|
|
698
|
+
/** @deprecated use `GetAgentMetrics$outboundSchema` instead. */
|
|
699
|
+
export const outboundSchema = GetAgentMetrics$outboundSchema;
|
|
700
|
+
/** @deprecated use `GetAgentMetrics$Outbound` instead. */
|
|
701
|
+
export type Outbound = GetAgentMetrics$Outbound;
|
|
815
702
|
}
|
|
816
703
|
|
|
817
|
-
export function
|
|
818
|
-
|
|
819
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
704
|
+
export function getAgentMetricsToJSON(
|
|
705
|
+
getAgentMetrics: GetAgentMetrics,
|
|
820
706
|
): string {
|
|
821
|
-
return JSON.stringify(
|
|
822
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
823
|
-
.parse(getAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery),
|
|
824
|
-
);
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
export function getAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(
|
|
828
|
-
jsonString: string,
|
|
829
|
-
): SafeParseResult<
|
|
830
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
831
|
-
SDKValidationError
|
|
832
|
-
> {
|
|
833
|
-
return safeParse(
|
|
834
|
-
jsonString,
|
|
835
|
-
(x) =>
|
|
836
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
837
|
-
.parse(JSON.parse(x)),
|
|
838
|
-
`Failed to parse 'GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery' from JSON`,
|
|
839
|
-
);
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
/** @internal */
|
|
843
|
-
export const GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema:
|
|
844
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationAgentsType> = z
|
|
845
|
-
.nativeEnum(GetAgentKnowledgeBaseConfigurationAgentsType);
|
|
846
|
-
|
|
847
|
-
/** @internal */
|
|
848
|
-
export const GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema:
|
|
849
|
-
z.ZodNativeEnum<typeof GetAgentKnowledgeBaseConfigurationAgentsType> =
|
|
850
|
-
GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* @internal
|
|
854
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
855
|
-
*/
|
|
856
|
-
export namespace GetAgentKnowledgeBaseConfigurationAgentsType$ {
|
|
857
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
|
|
858
|
-
export const inboundSchema =
|
|
859
|
-
GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
860
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
|
|
861
|
-
export const outboundSchema =
|
|
862
|
-
GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
/** @internal */
|
|
866
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema:
|
|
867
|
-
z.ZodType<
|
|
868
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
869
|
-
z.ZodTypeDef,
|
|
870
|
-
unknown
|
|
871
|
-
> = z.object({
|
|
872
|
-
type: GetAgentKnowledgeBaseConfigurationAgentsType$inboundSchema,
|
|
873
|
-
});
|
|
874
|
-
|
|
875
|
-
/** @internal */
|
|
876
|
-
export type GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound =
|
|
877
|
-
{
|
|
878
|
-
type: string;
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
/** @internal */
|
|
882
|
-
export const GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema:
|
|
883
|
-
z.ZodType<
|
|
884
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound,
|
|
885
|
-
z.ZodTypeDef,
|
|
886
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage
|
|
887
|
-
> = z.object({
|
|
888
|
-
type: GetAgentKnowledgeBaseConfigurationAgentsType$outboundSchema,
|
|
889
|
-
});
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* @internal
|
|
893
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
894
|
-
*/
|
|
895
|
-
export namespace GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$ {
|
|
896
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema` instead. */
|
|
897
|
-
export const inboundSchema =
|
|
898
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema;
|
|
899
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema` instead. */
|
|
900
|
-
export const outboundSchema =
|
|
901
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema;
|
|
902
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
|
|
903
|
-
export type Outbound =
|
|
904
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
export function getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(
|
|
908
|
-
getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage:
|
|
909
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
910
|
-
): string {
|
|
911
|
-
return JSON.stringify(
|
|
912
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
913
|
-
.parse(getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage),
|
|
914
|
-
);
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
export function getAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(
|
|
918
|
-
jsonString: string,
|
|
919
|
-
): SafeParseResult<
|
|
920
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
921
|
-
SDKValidationError
|
|
922
|
-
> {
|
|
923
|
-
return safeParse(
|
|
924
|
-
jsonString,
|
|
925
|
-
(x) =>
|
|
926
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
927
|
-
.parse(JSON.parse(x)),
|
|
928
|
-
`Failed to parse 'GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage' from JSON`,
|
|
929
|
-
);
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
/** @internal */
|
|
933
|
-
export const GetAgentKnowledgeBaseConfiguration$inboundSchema: z.ZodType<
|
|
934
|
-
GetAgentKnowledgeBaseConfiguration,
|
|
935
|
-
z.ZodTypeDef,
|
|
936
|
-
unknown
|
|
937
|
-
> = z.union([
|
|
938
|
-
z.lazy(() =>
|
|
939
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
940
|
-
),
|
|
941
|
-
z.lazy(() =>
|
|
942
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
943
|
-
),
|
|
944
|
-
]);
|
|
945
|
-
|
|
946
|
-
/** @internal */
|
|
947
|
-
export type GetAgentKnowledgeBaseConfiguration$Outbound =
|
|
948
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
949
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
950
|
-
|
|
951
|
-
/** @internal */
|
|
952
|
-
export const GetAgentKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
953
|
-
GetAgentKnowledgeBaseConfiguration$Outbound,
|
|
954
|
-
z.ZodTypeDef,
|
|
955
|
-
GetAgentKnowledgeBaseConfiguration
|
|
956
|
-
> = z.union([
|
|
957
|
-
z.lazy(() =>
|
|
958
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
959
|
-
),
|
|
960
|
-
z.lazy(() =>
|
|
961
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
962
|
-
),
|
|
963
|
-
]);
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* @internal
|
|
967
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
968
|
-
*/
|
|
969
|
-
export namespace GetAgentKnowledgeBaseConfiguration$ {
|
|
970
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
971
|
-
export const inboundSchema = GetAgentKnowledgeBaseConfiguration$inboundSchema;
|
|
972
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
973
|
-
export const outboundSchema =
|
|
974
|
-
GetAgentKnowledgeBaseConfiguration$outboundSchema;
|
|
975
|
-
/** @deprecated use `GetAgentKnowledgeBaseConfiguration$Outbound` instead. */
|
|
976
|
-
export type Outbound = GetAgentKnowledgeBaseConfiguration$Outbound;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
export function getAgentKnowledgeBaseConfigurationToJSON(
|
|
980
|
-
getAgentKnowledgeBaseConfiguration: GetAgentKnowledgeBaseConfiguration,
|
|
981
|
-
): string {
|
|
982
|
-
return JSON.stringify(
|
|
983
|
-
GetAgentKnowledgeBaseConfiguration$outboundSchema.parse(
|
|
984
|
-
getAgentKnowledgeBaseConfiguration,
|
|
985
|
-
),
|
|
986
|
-
);
|
|
707
|
+
return JSON.stringify(GetAgentMetrics$outboundSchema.parse(getAgentMetrics));
|
|
987
708
|
}
|
|
988
709
|
|
|
989
|
-
export function
|
|
710
|
+
export function getAgentMetricsFromJSON(
|
|
990
711
|
jsonString: string,
|
|
991
|
-
): SafeParseResult<
|
|
712
|
+
): SafeParseResult<GetAgentMetrics, SDKValidationError> {
|
|
992
713
|
return safeParse(
|
|
993
714
|
jsonString,
|
|
994
|
-
(x) =>
|
|
995
|
-
|
|
996
|
-
`Failed to parse 'GetAgentKnowledgeBaseConfiguration' from JSON`,
|
|
715
|
+
(x) => GetAgentMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
716
|
+
`Failed to parse 'GetAgentMetrics' from JSON`,
|
|
997
717
|
);
|
|
998
718
|
}
|
|
999
719
|
|
|
@@ -1003,16 +723,7 @@ export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1003
723
|
z.ZodTypeDef,
|
|
1004
724
|
unknown
|
|
1005
725
|
> = z.object({
|
|
1006
|
-
id: z.string().default("01K7KDRXGNB157Z6ZQ5E22CRV5"),
|
|
1007
726
|
knowledge_id: z.string(),
|
|
1008
|
-
configuration: z.union([
|
|
1009
|
-
z.lazy(() =>
|
|
1010
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
1011
|
-
),
|
|
1012
|
-
z.lazy(() =>
|
|
1013
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1014
|
-
),
|
|
1015
|
-
]),
|
|
1016
727
|
}).transform((v) => {
|
|
1017
728
|
return remap$(v, {
|
|
1018
729
|
"knowledge_id": "knowledgeId",
|
|
@@ -1021,11 +732,7 @@ export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1021
732
|
|
|
1022
733
|
/** @internal */
|
|
1023
734
|
export type GetAgentKnowledgeBases$Outbound = {
|
|
1024
|
-
id: string;
|
|
1025
735
|
knowledge_id: string;
|
|
1026
|
-
configuration:
|
|
1027
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
1028
|
-
| GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1029
736
|
};
|
|
1030
737
|
|
|
1031
738
|
/** @internal */
|
|
@@ -1034,16 +741,7 @@ export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1034
741
|
z.ZodTypeDef,
|
|
1035
742
|
GetAgentKnowledgeBases
|
|
1036
743
|
> = z.object({
|
|
1037
|
-
id: z.string().default("01K7KDRXGNB157Z6ZQ5E22CRV5"),
|
|
1038
744
|
knowledgeId: z.string(),
|
|
1039
|
-
configuration: z.union([
|
|
1040
|
-
z.lazy(() =>
|
|
1041
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
1042
|
-
),
|
|
1043
|
-
z.lazy(() =>
|
|
1044
|
-
GetAgentKnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
1045
|
-
),
|
|
1046
|
-
]),
|
|
1047
745
|
}).transform((v) => {
|
|
1048
746
|
return remap$(v, {
|
|
1049
747
|
knowledgeId: "knowledge_id",
|
|
@@ -1082,22 +780,24 @@ export function getAgentKnowledgeBasesFromJSON(
|
|
|
1082
780
|
}
|
|
1083
781
|
|
|
1084
782
|
/** @internal */
|
|
1085
|
-
export const
|
|
1086
|
-
|
|
783
|
+
export const GetAgentHiddenPanels$inboundSchema: z.ZodNativeEnum<
|
|
784
|
+
typeof GetAgentHiddenPanels
|
|
785
|
+
> = z.nativeEnum(GetAgentHiddenPanels);
|
|
1087
786
|
|
|
1088
787
|
/** @internal */
|
|
1089
|
-
export const
|
|
1090
|
-
|
|
788
|
+
export const GetAgentHiddenPanels$outboundSchema: z.ZodNativeEnum<
|
|
789
|
+
typeof GetAgentHiddenPanels
|
|
790
|
+
> = GetAgentHiddenPanels$inboundSchema;
|
|
1091
791
|
|
|
1092
792
|
/**
|
|
1093
793
|
* @internal
|
|
1094
794
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1095
795
|
*/
|
|
1096
|
-
export namespace
|
|
1097
|
-
/** @deprecated use `
|
|
1098
|
-
export const inboundSchema =
|
|
1099
|
-
/** @deprecated use `
|
|
1100
|
-
export const outboundSchema =
|
|
796
|
+
export namespace GetAgentHiddenPanels$ {
|
|
797
|
+
/** @deprecated use `GetAgentHiddenPanels$inboundSchema` instead. */
|
|
798
|
+
export const inboundSchema = GetAgentHiddenPanels$inboundSchema;
|
|
799
|
+
/** @deprecated use `GetAgentHiddenPanels$outboundSchema` instead. */
|
|
800
|
+
export const outboundSchema = GetAgentHiddenPanels$outboundSchema;
|
|
1101
801
|
}
|
|
1102
802
|
|
|
1103
803
|
/** @internal */
|
|
@@ -1125,11 +825,11 @@ export const GetAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
1125
825
|
path: z.string(),
|
|
1126
826
|
memory_stores: z.array(z.string()),
|
|
1127
827
|
team_of_agents: z.array(z.lazy(() => GetAgentTeamOfAgents$inboundSchema)),
|
|
1128
|
-
metrics: z.lazy(() =>
|
|
828
|
+
metrics: z.lazy(() => GetAgentMetrics$inboundSchema).optional(),
|
|
1129
829
|
variables: z.record(z.any()).optional(),
|
|
1130
830
|
knowledge_bases: z.array(z.lazy(() => GetAgentKnowledgeBases$inboundSchema))
|
|
1131
831
|
.optional(),
|
|
1132
|
-
hidden_panels: z.array(
|
|
832
|
+
hidden_panels: z.array(GetAgentHiddenPanels$inboundSchema).optional(),
|
|
1133
833
|
}).transform((v) => {
|
|
1134
834
|
return remap$(v, {
|
|
1135
835
|
"_id": "id",
|
|
@@ -1167,7 +867,7 @@ export type GetAgentResponseBody$Outbound = {
|
|
|
1167
867
|
path: string;
|
|
1168
868
|
memory_stores: Array<string>;
|
|
1169
869
|
team_of_agents: Array<GetAgentTeamOfAgents$Outbound>;
|
|
1170
|
-
metrics?:
|
|
870
|
+
metrics?: GetAgentMetrics$Outbound | undefined;
|
|
1171
871
|
variables?: { [k: string]: any } | undefined;
|
|
1172
872
|
knowledge_bases?: Array<GetAgentKnowledgeBases$Outbound> | undefined;
|
|
1173
873
|
hidden_panels?: Array<string> | undefined;
|
|
@@ -1198,11 +898,11 @@ export const GetAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
1198
898
|
path: z.string(),
|
|
1199
899
|
memoryStores: z.array(z.string()),
|
|
1200
900
|
teamOfAgents: z.array(z.lazy(() => GetAgentTeamOfAgents$outboundSchema)),
|
|
1201
|
-
metrics: z.lazy(() =>
|
|
901
|
+
metrics: z.lazy(() => GetAgentMetrics$outboundSchema).optional(),
|
|
1202
902
|
variables: z.record(z.any()).optional(),
|
|
1203
903
|
knowledgeBases: z.array(z.lazy(() => GetAgentKnowledgeBases$outboundSchema))
|
|
1204
904
|
.optional(),
|
|
1205
|
-
hiddenPanels: z.array(
|
|
905
|
+
hiddenPanels: z.array(GetAgentHiddenPanels$outboundSchema).optional(),
|
|
1206
906
|
}).transform((v) => {
|
|
1207
907
|
return remap$(v, {
|
|
1208
908
|
id: "_id",
|