@orq-ai/node 3.12.19 → 3.12.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/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- 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/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +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 +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- 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/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 +16 -16
- package/package.json +1 -1
- 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/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +39 -44
- package/packages/orq-rc/src/models/components/index.ts +0 -13
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +56 -60
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +18 -17
- package/packages/orq-rc/src/models/operations/createprompt.ts +34 -30
- package/packages/orq-rc/src/models/operations/createtool.ts +42 -68
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +27 -36
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- 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 +203 -141
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- 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/listagents.ts +202 -141
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +22 -29
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- 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 +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +2292 -1130
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +2590 -1252
- 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 +2 -2
- 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 +57 -57
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +17 -21
- package/packages/orq-rc/src/models/operations/updatetool.ts +43 -69
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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 +16 -16
- 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/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- 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/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 +16 -16
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +0 -109
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +0 -293
- package/packages/orq-rc/src/models/components/currentdatetool.ts +0 -107
- package/packages/orq-rc/src/models/components/functiontool.ts +0 -195
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +0 -108
- package/packages/orq-rc/src/models/components/httptool.ts +0 -532
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +0 -111
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +0 -111
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +0 -109
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +0 -111
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +0 -111
- package/packages/orq-rc/src/models/components/webscrapertool.ts +0 -105
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +0 -111
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export const QueryKnowledgeBaseToolType = {
|
|
13
|
-
QueryKnowledgeBase: "query_knowledge_base",
|
|
14
|
-
} as const;
|
|
15
|
-
export type QueryKnowledgeBaseToolType = ClosedEnum<
|
|
16
|
-
typeof QueryKnowledgeBaseToolType
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Queries knowledge bases for information
|
|
21
|
-
*/
|
|
22
|
-
export type QueryKnowledgeBaseTool = {
|
|
23
|
-
type: QueryKnowledgeBaseToolType;
|
|
24
|
-
requiresApproval?: boolean | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const QueryKnowledgeBaseToolType$inboundSchema: z.ZodNativeEnum<
|
|
29
|
-
typeof QueryKnowledgeBaseToolType
|
|
30
|
-
> = z.nativeEnum(QueryKnowledgeBaseToolType);
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const QueryKnowledgeBaseToolType$outboundSchema: z.ZodNativeEnum<
|
|
34
|
-
typeof QueryKnowledgeBaseToolType
|
|
35
|
-
> = QueryKnowledgeBaseToolType$inboundSchema;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export namespace QueryKnowledgeBaseToolType$ {
|
|
42
|
-
/** @deprecated use `QueryKnowledgeBaseToolType$inboundSchema` instead. */
|
|
43
|
-
export const inboundSchema = QueryKnowledgeBaseToolType$inboundSchema;
|
|
44
|
-
/** @deprecated use `QueryKnowledgeBaseToolType$outboundSchema` instead. */
|
|
45
|
-
export const outboundSchema = QueryKnowledgeBaseToolType$outboundSchema;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
50
|
-
QueryKnowledgeBaseTool,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
unknown
|
|
53
|
-
> = z.object({
|
|
54
|
-
type: QueryKnowledgeBaseToolType$inboundSchema,
|
|
55
|
-
requires_approval: z.boolean().default(false),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"requires_approval": "requiresApproval",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type QueryKnowledgeBaseTool$Outbound = {
|
|
64
|
-
type: string;
|
|
65
|
-
requires_approval: boolean;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
70
|
-
QueryKnowledgeBaseTool$Outbound,
|
|
71
|
-
z.ZodTypeDef,
|
|
72
|
-
QueryKnowledgeBaseTool
|
|
73
|
-
> = z.object({
|
|
74
|
-
type: QueryKnowledgeBaseToolType$outboundSchema,
|
|
75
|
-
requiresApproval: z.boolean().default(false),
|
|
76
|
-
}).transform((v) => {
|
|
77
|
-
return remap$(v, {
|
|
78
|
-
requiresApproval: "requires_approval",
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace QueryKnowledgeBaseTool$ {
|
|
87
|
-
/** @deprecated use `QueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema = QueryKnowledgeBaseTool$inboundSchema;
|
|
89
|
-
/** @deprecated use `QueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema = QueryKnowledgeBaseTool$outboundSchema;
|
|
91
|
-
/** @deprecated use `QueryKnowledgeBaseTool$Outbound` instead. */
|
|
92
|
-
export type Outbound = QueryKnowledgeBaseTool$Outbound;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function queryKnowledgeBaseToolToJSON(
|
|
96
|
-
queryKnowledgeBaseTool: QueryKnowledgeBaseTool,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
QueryKnowledgeBaseTool$outboundSchema.parse(queryKnowledgeBaseTool),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function queryKnowledgeBaseToolFromJSON(
|
|
104
|
-
jsonString: string,
|
|
105
|
-
): SafeParseResult<QueryKnowledgeBaseTool, SDKValidationError> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) => QueryKnowledgeBaseTool$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
-
`Failed to parse 'QueryKnowledgeBaseTool' from JSON`,
|
|
110
|
-
);
|
|
111
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export const QueryMemoryStoreToolType = {
|
|
13
|
-
QueryMemoryStore: "query_memory_store",
|
|
14
|
-
} as const;
|
|
15
|
-
export type QueryMemoryStoreToolType = ClosedEnum<
|
|
16
|
-
typeof QueryMemoryStoreToolType
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Queries agent memory stores for context
|
|
21
|
-
*/
|
|
22
|
-
export type QueryMemoryStoreTool = {
|
|
23
|
-
type: QueryMemoryStoreToolType;
|
|
24
|
-
requiresApproval?: boolean | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const QueryMemoryStoreToolType$inboundSchema: z.ZodNativeEnum<
|
|
29
|
-
typeof QueryMemoryStoreToolType
|
|
30
|
-
> = z.nativeEnum(QueryMemoryStoreToolType);
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const QueryMemoryStoreToolType$outboundSchema: z.ZodNativeEnum<
|
|
34
|
-
typeof QueryMemoryStoreToolType
|
|
35
|
-
> = QueryMemoryStoreToolType$inboundSchema;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export namespace QueryMemoryStoreToolType$ {
|
|
42
|
-
/** @deprecated use `QueryMemoryStoreToolType$inboundSchema` instead. */
|
|
43
|
-
export const inboundSchema = QueryMemoryStoreToolType$inboundSchema;
|
|
44
|
-
/** @deprecated use `QueryMemoryStoreToolType$outboundSchema` instead. */
|
|
45
|
-
export const outboundSchema = QueryMemoryStoreToolType$outboundSchema;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
50
|
-
QueryMemoryStoreTool,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
unknown
|
|
53
|
-
> = z.object({
|
|
54
|
-
type: QueryMemoryStoreToolType$inboundSchema,
|
|
55
|
-
requires_approval: z.boolean().default(false),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"requires_approval": "requiresApproval",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type QueryMemoryStoreTool$Outbound = {
|
|
64
|
-
type: string;
|
|
65
|
-
requires_approval: boolean;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
70
|
-
QueryMemoryStoreTool$Outbound,
|
|
71
|
-
z.ZodTypeDef,
|
|
72
|
-
QueryMemoryStoreTool
|
|
73
|
-
> = z.object({
|
|
74
|
-
type: QueryMemoryStoreToolType$outboundSchema,
|
|
75
|
-
requiresApproval: z.boolean().default(false),
|
|
76
|
-
}).transform((v) => {
|
|
77
|
-
return remap$(v, {
|
|
78
|
-
requiresApproval: "requires_approval",
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace QueryMemoryStoreTool$ {
|
|
87
|
-
/** @deprecated use `QueryMemoryStoreTool$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema = QueryMemoryStoreTool$inboundSchema;
|
|
89
|
-
/** @deprecated use `QueryMemoryStoreTool$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema = QueryMemoryStoreTool$outboundSchema;
|
|
91
|
-
/** @deprecated use `QueryMemoryStoreTool$Outbound` instead. */
|
|
92
|
-
export type Outbound = QueryMemoryStoreTool$Outbound;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function queryMemoryStoreToolToJSON(
|
|
96
|
-
queryMemoryStoreTool: QueryMemoryStoreTool,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
QueryMemoryStoreTool$outboundSchema.parse(queryMemoryStoreTool),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function queryMemoryStoreToolFromJSON(
|
|
104
|
-
jsonString: string,
|
|
105
|
-
): SafeParseResult<QueryMemoryStoreTool, SDKValidationError> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) => QueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
-
`Failed to parse 'QueryMemoryStoreTool' from JSON`,
|
|
110
|
-
);
|
|
111
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export const RetrieveAgentsToolType = {
|
|
13
|
-
RetrieveAgents: "retrieve_agents",
|
|
14
|
-
} as const;
|
|
15
|
-
export type RetrieveAgentsToolType = ClosedEnum<typeof RetrieveAgentsToolType>;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves available agents in the system
|
|
19
|
-
*/
|
|
20
|
-
export type RetrieveAgentsTool = {
|
|
21
|
-
type: RetrieveAgentsToolType;
|
|
22
|
-
requiresApproval?: boolean | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const RetrieveAgentsToolType$inboundSchema: z.ZodNativeEnum<
|
|
27
|
-
typeof RetrieveAgentsToolType
|
|
28
|
-
> = z.nativeEnum(RetrieveAgentsToolType);
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const RetrieveAgentsToolType$outboundSchema: z.ZodNativeEnum<
|
|
32
|
-
typeof RetrieveAgentsToolType
|
|
33
|
-
> = RetrieveAgentsToolType$inboundSchema;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
-
*/
|
|
39
|
-
export namespace RetrieveAgentsToolType$ {
|
|
40
|
-
/** @deprecated use `RetrieveAgentsToolType$inboundSchema` instead. */
|
|
41
|
-
export const inboundSchema = RetrieveAgentsToolType$inboundSchema;
|
|
42
|
-
/** @deprecated use `RetrieveAgentsToolType$outboundSchema` instead. */
|
|
43
|
-
export const outboundSchema = RetrieveAgentsToolType$outboundSchema;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const RetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
48
|
-
RetrieveAgentsTool,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({
|
|
52
|
-
type: RetrieveAgentsToolType$inboundSchema,
|
|
53
|
-
requires_approval: z.boolean().default(false),
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
"requires_approval": "requiresApproval",
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type RetrieveAgentsTool$Outbound = {
|
|
62
|
-
type: string;
|
|
63
|
-
requires_approval: boolean;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const RetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
68
|
-
RetrieveAgentsTool$Outbound,
|
|
69
|
-
z.ZodTypeDef,
|
|
70
|
-
RetrieveAgentsTool
|
|
71
|
-
> = z.object({
|
|
72
|
-
type: RetrieveAgentsToolType$outboundSchema,
|
|
73
|
-
requiresApproval: z.boolean().default(false),
|
|
74
|
-
}).transform((v) => {
|
|
75
|
-
return remap$(v, {
|
|
76
|
-
requiresApproval: "requires_approval",
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export namespace RetrieveAgentsTool$ {
|
|
85
|
-
/** @deprecated use `RetrieveAgentsTool$inboundSchema` instead. */
|
|
86
|
-
export const inboundSchema = RetrieveAgentsTool$inboundSchema;
|
|
87
|
-
/** @deprecated use `RetrieveAgentsTool$outboundSchema` instead. */
|
|
88
|
-
export const outboundSchema = RetrieveAgentsTool$outboundSchema;
|
|
89
|
-
/** @deprecated use `RetrieveAgentsTool$Outbound` instead. */
|
|
90
|
-
export type Outbound = RetrieveAgentsTool$Outbound;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function retrieveAgentsToolToJSON(
|
|
94
|
-
retrieveAgentsTool: RetrieveAgentsTool,
|
|
95
|
-
): string {
|
|
96
|
-
return JSON.stringify(
|
|
97
|
-
RetrieveAgentsTool$outboundSchema.parse(retrieveAgentsTool),
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function retrieveAgentsToolFromJSON(
|
|
102
|
-
jsonString: string,
|
|
103
|
-
): SafeParseResult<RetrieveAgentsTool, SDKValidationError> {
|
|
104
|
-
return safeParse(
|
|
105
|
-
jsonString,
|
|
106
|
-
(x) => RetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
-
`Failed to parse 'RetrieveAgentsTool' from JSON`,
|
|
108
|
-
);
|
|
109
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export const RetrieveKnowledgeBasesToolType = {
|
|
13
|
-
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
14
|
-
} as const;
|
|
15
|
-
export type RetrieveKnowledgeBasesToolType = ClosedEnum<
|
|
16
|
-
typeof RetrieveKnowledgeBasesToolType
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Lists available knowledge bases
|
|
21
|
-
*/
|
|
22
|
-
export type RetrieveKnowledgeBasesTool = {
|
|
23
|
-
type: RetrieveKnowledgeBasesToolType;
|
|
24
|
-
requiresApproval?: boolean | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const RetrieveKnowledgeBasesToolType$inboundSchema: z.ZodNativeEnum<
|
|
29
|
-
typeof RetrieveKnowledgeBasesToolType
|
|
30
|
-
> = z.nativeEnum(RetrieveKnowledgeBasesToolType);
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const RetrieveKnowledgeBasesToolType$outboundSchema: z.ZodNativeEnum<
|
|
34
|
-
typeof RetrieveKnowledgeBasesToolType
|
|
35
|
-
> = RetrieveKnowledgeBasesToolType$inboundSchema;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export namespace RetrieveKnowledgeBasesToolType$ {
|
|
42
|
-
/** @deprecated use `RetrieveKnowledgeBasesToolType$inboundSchema` instead. */
|
|
43
|
-
export const inboundSchema = RetrieveKnowledgeBasesToolType$inboundSchema;
|
|
44
|
-
/** @deprecated use `RetrieveKnowledgeBasesToolType$outboundSchema` instead. */
|
|
45
|
-
export const outboundSchema = RetrieveKnowledgeBasesToolType$outboundSchema;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<
|
|
50
|
-
RetrieveKnowledgeBasesTool,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
unknown
|
|
53
|
-
> = z.object({
|
|
54
|
-
type: RetrieveKnowledgeBasesToolType$inboundSchema,
|
|
55
|
-
requires_approval: z.boolean().default(false),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"requires_approval": "requiresApproval",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type RetrieveKnowledgeBasesTool$Outbound = {
|
|
64
|
-
type: string;
|
|
65
|
-
requires_approval: boolean;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<
|
|
70
|
-
RetrieveKnowledgeBasesTool$Outbound,
|
|
71
|
-
z.ZodTypeDef,
|
|
72
|
-
RetrieveKnowledgeBasesTool
|
|
73
|
-
> = z.object({
|
|
74
|
-
type: RetrieveKnowledgeBasesToolType$outboundSchema,
|
|
75
|
-
requiresApproval: z.boolean().default(false),
|
|
76
|
-
}).transform((v) => {
|
|
77
|
-
return remap$(v, {
|
|
78
|
-
requiresApproval: "requires_approval",
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace RetrieveKnowledgeBasesTool$ {
|
|
87
|
-
/** @deprecated use `RetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema = RetrieveKnowledgeBasesTool$inboundSchema;
|
|
89
|
-
/** @deprecated use `RetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema = RetrieveKnowledgeBasesTool$outboundSchema;
|
|
91
|
-
/** @deprecated use `RetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
92
|
-
export type Outbound = RetrieveKnowledgeBasesTool$Outbound;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function retrieveKnowledgeBasesToolToJSON(
|
|
96
|
-
retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
RetrieveKnowledgeBasesTool$outboundSchema.parse(retrieveKnowledgeBasesTool),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function retrieveKnowledgeBasesToolFromJSON(
|
|
104
|
-
jsonString: string,
|
|
105
|
-
): SafeParseResult<RetrieveKnowledgeBasesTool, SDKValidationError> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) => RetrieveKnowledgeBasesTool$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
-
`Failed to parse 'RetrieveKnowledgeBasesTool' from JSON`,
|
|
110
|
-
);
|
|
111
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export const RetrieveMemoryStoresToolType = {
|
|
13
|
-
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
14
|
-
} as const;
|
|
15
|
-
export type RetrieveMemoryStoresToolType = ClosedEnum<
|
|
16
|
-
typeof RetrieveMemoryStoresToolType
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Lists available memory stores
|
|
21
|
-
*/
|
|
22
|
-
export type RetrieveMemoryStoresTool = {
|
|
23
|
-
type: RetrieveMemoryStoresToolType;
|
|
24
|
-
requiresApproval?: boolean | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const RetrieveMemoryStoresToolType$inboundSchema: z.ZodNativeEnum<
|
|
29
|
-
typeof RetrieveMemoryStoresToolType
|
|
30
|
-
> = z.nativeEnum(RetrieveMemoryStoresToolType);
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const RetrieveMemoryStoresToolType$outboundSchema: z.ZodNativeEnum<
|
|
34
|
-
typeof RetrieveMemoryStoresToolType
|
|
35
|
-
> = RetrieveMemoryStoresToolType$inboundSchema;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export namespace RetrieveMemoryStoresToolType$ {
|
|
42
|
-
/** @deprecated use `RetrieveMemoryStoresToolType$inboundSchema` instead. */
|
|
43
|
-
export const inboundSchema = RetrieveMemoryStoresToolType$inboundSchema;
|
|
44
|
-
/** @deprecated use `RetrieveMemoryStoresToolType$outboundSchema` instead. */
|
|
45
|
-
export const outboundSchema = RetrieveMemoryStoresToolType$outboundSchema;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
50
|
-
RetrieveMemoryStoresTool,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
unknown
|
|
53
|
-
> = z.object({
|
|
54
|
-
type: RetrieveMemoryStoresToolType$inboundSchema,
|
|
55
|
-
requires_approval: z.boolean().default(false),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"requires_approval": "requiresApproval",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type RetrieveMemoryStoresTool$Outbound = {
|
|
64
|
-
type: string;
|
|
65
|
-
requires_approval: boolean;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<
|
|
70
|
-
RetrieveMemoryStoresTool$Outbound,
|
|
71
|
-
z.ZodTypeDef,
|
|
72
|
-
RetrieveMemoryStoresTool
|
|
73
|
-
> = z.object({
|
|
74
|
-
type: RetrieveMemoryStoresToolType$outboundSchema,
|
|
75
|
-
requiresApproval: z.boolean().default(false),
|
|
76
|
-
}).transform((v) => {
|
|
77
|
-
return remap$(v, {
|
|
78
|
-
requiresApproval: "requires_approval",
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace RetrieveMemoryStoresTool$ {
|
|
87
|
-
/** @deprecated use `RetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema = RetrieveMemoryStoresTool$inboundSchema;
|
|
89
|
-
/** @deprecated use `RetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema = RetrieveMemoryStoresTool$outboundSchema;
|
|
91
|
-
/** @deprecated use `RetrieveMemoryStoresTool$Outbound` instead. */
|
|
92
|
-
export type Outbound = RetrieveMemoryStoresTool$Outbound;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function retrieveMemoryStoresToolToJSON(
|
|
96
|
-
retrieveMemoryStoresTool: RetrieveMemoryStoresTool,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
RetrieveMemoryStoresTool$outboundSchema.parse(retrieveMemoryStoresTool),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function retrieveMemoryStoresToolFromJSON(
|
|
104
|
-
jsonString: string,
|
|
105
|
-
): SafeParseResult<RetrieveMemoryStoresTool, SDKValidationError> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) => RetrieveMemoryStoresTool$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
-
`Failed to parse 'RetrieveMemoryStoresTool' from JSON`,
|
|
110
|
-
);
|
|
111
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export const WebScraperToolType = {
|
|
13
|
-
WebScraper: "web_scraper",
|
|
14
|
-
} as const;
|
|
15
|
-
export type WebScraperToolType = ClosedEnum<typeof WebScraperToolType>;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Scrapes and extracts content from web pages
|
|
19
|
-
*/
|
|
20
|
-
export type WebScraperTool = {
|
|
21
|
-
type: WebScraperToolType;
|
|
22
|
-
requiresApproval?: boolean | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const WebScraperToolType$inboundSchema: z.ZodNativeEnum<
|
|
27
|
-
typeof WebScraperToolType
|
|
28
|
-
> = z.nativeEnum(WebScraperToolType);
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const WebScraperToolType$outboundSchema: z.ZodNativeEnum<
|
|
32
|
-
typeof WebScraperToolType
|
|
33
|
-
> = WebScraperToolType$inboundSchema;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
-
*/
|
|
39
|
-
export namespace WebScraperToolType$ {
|
|
40
|
-
/** @deprecated use `WebScraperToolType$inboundSchema` instead. */
|
|
41
|
-
export const inboundSchema = WebScraperToolType$inboundSchema;
|
|
42
|
-
/** @deprecated use `WebScraperToolType$outboundSchema` instead. */
|
|
43
|
-
export const outboundSchema = WebScraperToolType$outboundSchema;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const WebScraperTool$inboundSchema: z.ZodType<
|
|
48
|
-
WebScraperTool,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({
|
|
52
|
-
type: WebScraperToolType$inboundSchema,
|
|
53
|
-
requires_approval: z.boolean().default(false),
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
"requires_approval": "requiresApproval",
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type WebScraperTool$Outbound = {
|
|
62
|
-
type: string;
|
|
63
|
-
requires_approval: boolean;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const WebScraperTool$outboundSchema: z.ZodType<
|
|
68
|
-
WebScraperTool$Outbound,
|
|
69
|
-
z.ZodTypeDef,
|
|
70
|
-
WebScraperTool
|
|
71
|
-
> = z.object({
|
|
72
|
-
type: WebScraperToolType$outboundSchema,
|
|
73
|
-
requiresApproval: z.boolean().default(false),
|
|
74
|
-
}).transform((v) => {
|
|
75
|
-
return remap$(v, {
|
|
76
|
-
requiresApproval: "requires_approval",
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export namespace WebScraperTool$ {
|
|
85
|
-
/** @deprecated use `WebScraperTool$inboundSchema` instead. */
|
|
86
|
-
export const inboundSchema = WebScraperTool$inboundSchema;
|
|
87
|
-
/** @deprecated use `WebScraperTool$outboundSchema` instead. */
|
|
88
|
-
export const outboundSchema = WebScraperTool$outboundSchema;
|
|
89
|
-
/** @deprecated use `WebScraperTool$Outbound` instead. */
|
|
90
|
-
export type Outbound = WebScraperTool$Outbound;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function webScraperToolToJSON(webScraperTool: WebScraperTool): string {
|
|
94
|
-
return JSON.stringify(WebScraperTool$outboundSchema.parse(webScraperTool));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export function webScraperToolFromJSON(
|
|
98
|
-
jsonString: string,
|
|
99
|
-
): SafeParseResult<WebScraperTool, SDKValidationError> {
|
|
100
|
-
return safeParse(
|
|
101
|
-
jsonString,
|
|
102
|
-
(x) => WebScraperTool$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
-
`Failed to parse 'WebScraperTool' from JSON`,
|
|
104
|
-
);
|
|
105
|
-
}
|