@orq-ai/node 4.0.0-rc.20 → 4.0.0-rc.21
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 +25 -21
- package/bin/mcp-server.js +4356 -3411
- package/bin/mcp-server.js.map +54 -50
- package/docs/sdks/agents/README.md +83 -3
- package/examples/package-lock.json +1 -1
- package/funcs/agentsDuplicate.d.ts +18 -0
- package/funcs/agentsDuplicate.d.ts.map +1 -0
- package/funcs/agentsDuplicate.js +123 -0
- package/funcs/agentsDuplicate.js.map +1 -0
- package/funcs/agentsList.d.ts +1 -1
- package/funcs/agentsList.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsDuplicate.d.ts +8 -0
- package/mcp-server/tools/agentsDuplicate.d.ts.map +1 -0
- package/mcp-server/tools/agentsDuplicate.js +64 -0
- package/mcp-server/tools/agentsDuplicate.js.map +1 -0
- package/mcp-server/tools/agentsList.js +1 -1
- package/mcp-server/tools/agentsList.js.map +1 -1
- package/models/errors/duplicateagent.d.ts +55 -0
- package/models/errors/duplicateagent.d.ts.map +1 -0
- package/models/errors/duplicateagent.js +106 -0
- package/models/errors/duplicateagent.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagent.d.ts +19 -10
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +14 -11
- package/models/operations/createagent.js.map +1 -1
- 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 +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicateagent.d.ts +1267 -0
- package/models/operations/duplicateagent.d.ts.map +1 -0
- package/models/operations/duplicateagent.js +1278 -0
- package/models/operations/duplicateagent.js.map +1 -0
- package/models/operations/duplicatetool.js +10 -10
- 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 +12 -9
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +11 -11
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +321 -4
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +351 -5
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +231 -2
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +261 -4
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +14 -11
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +14 -13
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +250 -1094
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +276 -1117
- 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 +8 -8
- 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 +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +232 -3
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +267 -8
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +1 -1
- package/models/operations/updateagent.d.ts +41 -9
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +34 -16
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/sdk/agents.d.ts +8 -1
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +11 -1
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsDuplicate.ts +179 -0
- package/src/funcs/agentsList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/agentsDuplicate.ts +37 -0
- package/src/mcp-server/tools/agentsList.ts +1 -1
- package/src/models/errors/duplicateagent.ts +128 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createagent.ts +33 -16
- 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 +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicateagent.ts +3280 -0
- package/src/models/operations/duplicatetool.ts +10 -10
- 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 +29 -17
- package/src/models/operations/getagenttask.ts +750 -8
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/invokeagent.ts +632 -4
- package/src/models/operations/listagents.ts +32 -21
- package/src/models/operations/listagenttasks.ts +640 -2908
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +606 -5
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +72 -18
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +10 -10
- package/src/sdk/agents.ts +19 -1
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type ListAgentsRequest = {
|
|
13
13
|
/**
|
|
14
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and
|
|
14
|
+
* A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
|
|
15
15
|
*/
|
|
16
16
|
limit?: number | undefined;
|
|
17
17
|
/**
|
|
@@ -804,14 +804,16 @@ export type ListAgentsKnowledgeBases = {
|
|
|
804
804
|
knowledgeId: string;
|
|
805
805
|
};
|
|
806
806
|
|
|
807
|
-
export const
|
|
807
|
+
export const ListAgentsCollapsedConfigurationSections = {
|
|
808
|
+
Information: "information",
|
|
808
809
|
Model: "model",
|
|
809
810
|
Tools: "tools",
|
|
810
|
-
|
|
811
|
-
Variables: "variables",
|
|
811
|
+
Context: "context",
|
|
812
812
|
RuntimeConstraints: "runtime_constraints",
|
|
813
813
|
} as const;
|
|
814
|
-
export type
|
|
814
|
+
export type ListAgentsCollapsedConfigurationSections = ClosedEnum<
|
|
815
|
+
typeof ListAgentsCollapsedConfigurationSections
|
|
816
|
+
>;
|
|
815
817
|
|
|
816
818
|
export type ListAgentsData = {
|
|
817
819
|
id: string;
|
|
@@ -843,6 +845,9 @@ export type ListAgentsData = {
|
|
|
843
845
|
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
844
846
|
*/
|
|
845
847
|
path: string;
|
|
848
|
+
/**
|
|
849
|
+
* Array of memory store identifiers. Accepts both memory store IDs and keys.
|
|
850
|
+
*/
|
|
846
851
|
memoryStores: Array<string>;
|
|
847
852
|
/**
|
|
848
853
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
@@ -858,9 +863,11 @@ export type ListAgentsData = {
|
|
|
858
863
|
*/
|
|
859
864
|
knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
|
|
860
865
|
/**
|
|
861
|
-
* List of
|
|
866
|
+
* List of collapsed sections in configuration. Duplicates are not allowed.
|
|
862
867
|
*/
|
|
863
|
-
|
|
868
|
+
collapsedConfigurationSections?:
|
|
869
|
+
| Array<ListAgentsCollapsedConfigurationSections>
|
|
870
|
+
| undefined;
|
|
864
871
|
};
|
|
865
872
|
|
|
866
873
|
/**
|
|
@@ -878,7 +885,7 @@ export const ListAgentsRequest$inboundSchema: z.ZodType<
|
|
|
878
885
|
z.ZodTypeDef,
|
|
879
886
|
unknown
|
|
880
887
|
> = z.object({
|
|
881
|
-
limit: z.number().
|
|
888
|
+
limit: z.number().optional(),
|
|
882
889
|
starting_after: z.string().optional(),
|
|
883
890
|
ending_before: z.string().optional(),
|
|
884
891
|
}).transform((v) => {
|
|
@@ -889,7 +896,7 @@ export const ListAgentsRequest$inboundSchema: z.ZodType<
|
|
|
889
896
|
});
|
|
890
897
|
/** @internal */
|
|
891
898
|
export type ListAgentsRequest$Outbound = {
|
|
892
|
-
limit
|
|
899
|
+
limit?: number | undefined;
|
|
893
900
|
starting_after?: string | undefined;
|
|
894
901
|
ending_before?: string | undefined;
|
|
895
902
|
};
|
|
@@ -900,7 +907,7 @@ export const ListAgentsRequest$outboundSchema: z.ZodType<
|
|
|
900
907
|
z.ZodTypeDef,
|
|
901
908
|
ListAgentsRequest
|
|
902
909
|
> = z.object({
|
|
903
|
-
limit: z.number().
|
|
910
|
+
limit: z.number().optional(),
|
|
904
911
|
startingAfter: z.string().optional(),
|
|
905
912
|
endingBefore: z.string().optional(),
|
|
906
913
|
}).transform((v) => {
|
|
@@ -3103,13 +3110,13 @@ export function listAgentsKnowledgeBasesFromJSON(
|
|
|
3103
3110
|
}
|
|
3104
3111
|
|
|
3105
3112
|
/** @internal */
|
|
3106
|
-
export const
|
|
3107
|
-
typeof
|
|
3108
|
-
|
|
3113
|
+
export const ListAgentsCollapsedConfigurationSections$inboundSchema:
|
|
3114
|
+
z.ZodNativeEnum<typeof ListAgentsCollapsedConfigurationSections> = z
|
|
3115
|
+
.nativeEnum(ListAgentsCollapsedConfigurationSections);
|
|
3109
3116
|
/** @internal */
|
|
3110
|
-
export const
|
|
3111
|
-
typeof
|
|
3112
|
-
|
|
3117
|
+
export const ListAgentsCollapsedConfigurationSections$outboundSchema:
|
|
3118
|
+
z.ZodNativeEnum<typeof ListAgentsCollapsedConfigurationSections> =
|
|
3119
|
+
ListAgentsCollapsedConfigurationSections$inboundSchema;
|
|
3113
3120
|
|
|
3114
3121
|
/** @internal */
|
|
3115
3122
|
export const ListAgentsData$inboundSchema: z.ZodType<
|
|
@@ -3140,7 +3147,9 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
3140
3147
|
variables: z.record(z.any()).optional(),
|
|
3141
3148
|
knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
|
|
3142
3149
|
.optional(),
|
|
3143
|
-
|
|
3150
|
+
collapsed_configuration_sections: z.array(
|
|
3151
|
+
ListAgentsCollapsedConfigurationSections$inboundSchema,
|
|
3152
|
+
).optional(),
|
|
3144
3153
|
}).transform((v) => {
|
|
3145
3154
|
return remap$(v, {
|
|
3146
3155
|
"_id": "id",
|
|
@@ -3153,7 +3162,7 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
3153
3162
|
"memory_stores": "memoryStores",
|
|
3154
3163
|
"team_of_agents": "teamOfAgents",
|
|
3155
3164
|
"knowledge_bases": "knowledgeBases",
|
|
3156
|
-
"
|
|
3165
|
+
"collapsed_configuration_sections": "collapsedConfigurationSections",
|
|
3157
3166
|
});
|
|
3158
3167
|
});
|
|
3159
3168
|
/** @internal */
|
|
@@ -3180,7 +3189,7 @@ export type ListAgentsData$Outbound = {
|
|
|
3180
3189
|
metrics?: ListAgentsMetrics$Outbound | undefined;
|
|
3181
3190
|
variables?: { [k: string]: any } | undefined;
|
|
3182
3191
|
knowledge_bases?: Array<ListAgentsKnowledgeBases$Outbound> | undefined;
|
|
3183
|
-
|
|
3192
|
+
collapsed_configuration_sections?: Array<string> | undefined;
|
|
3184
3193
|
};
|
|
3185
3194
|
|
|
3186
3195
|
/** @internal */
|
|
@@ -3212,7 +3221,9 @@ export const ListAgentsData$outboundSchema: z.ZodType<
|
|
|
3212
3221
|
variables: z.record(z.any()).optional(),
|
|
3213
3222
|
knowledgeBases: z.array(z.lazy(() => ListAgentsKnowledgeBases$outboundSchema))
|
|
3214
3223
|
.optional(),
|
|
3215
|
-
|
|
3224
|
+
collapsedConfigurationSections: z.array(
|
|
3225
|
+
ListAgentsCollapsedConfigurationSections$outboundSchema,
|
|
3226
|
+
).optional(),
|
|
3216
3227
|
}).transform((v) => {
|
|
3217
3228
|
return remap$(v, {
|
|
3218
3229
|
id: "_id",
|
|
@@ -3225,7 +3236,7 @@ export const ListAgentsData$outboundSchema: z.ZodType<
|
|
|
3225
3236
|
memoryStores: "memory_stores",
|
|
3226
3237
|
teamOfAgents: "team_of_agents",
|
|
3227
3238
|
knowledgeBases: "knowledge_bases",
|
|
3228
|
-
|
|
3239
|
+
collapsedConfigurationSections: "collapsed_configuration_sections",
|
|
3229
3240
|
});
|
|
3230
3241
|
});
|
|
3231
3242
|
|