syllable-sdk 0.1.0-alpha.42 → 0.1.0-alpha.43
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mintlify/mint.json +4 -4
- package/models/components/agentcreate.d.ts +1 -1
- package/models/components/agentresponse.d.ts +7 -1
- package/models/components/agentresponse.d.ts.map +1 -1
- package/models/components/agentresponse.js +3 -0
- package/models/components/agentresponse.js.map +1 -1
- package/models/components/agentupdate.d.ts +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/statictoolparameter.d.ts +56 -0
- package/models/components/statictoolparameter.d.ts.map +1 -0
- package/models/components/statictoolparameter.js +68 -0
- package/models/components/statictoolparameter.js.map +1 -0
- package/models/components/statictoolparametertype.d.ts +40 -0
- package/models/components/statictoolparametertype.d.ts.map +1 -0
- package/models/components/statictoolparametertype.js +55 -0
- package/models/components/statictoolparametertype.js.map +1 -0
- package/models/components/tooldefinition.d.ts +6 -0
- package/models/components/tooldefinition.d.ts.map +1 -1
- package/models/components/tooldefinition.js +14 -0
- package/models/components/tooldefinition.js.map +1 -1
- package/openapi.json +92 -3
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/agentcreate.ts +1 -1
- package/src/models/components/agentresponse.ts +14 -1
- package/src/models/components/agentupdate.ts +1 -1
- package/src/models/components/index.ts +2 -0
- package/src/models/components/statictoolparameter.ts +105 -0
- package/src/models/components/statictoolparametertype.ts +43 -0
- package/src/models/components/tooldefinition.ts +24 -0
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.2";
|
|
30
|
-
readonly sdkVersion: "0.1.0-alpha.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.43";
|
|
31
|
+
readonly genVersion: "2.512.4";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.43 2.512.4 0.0.2 syllable-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.2",
|
|
34
|
-
sdkVersion: "0.1.0-alpha.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
34
|
+
sdkVersion: "0.1.0-alpha.43",
|
|
35
|
+
genVersion: "2.512.4",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.43 2.512.4 0.0.2 syllable-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mintlify/mint.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "https://mintlify.com/schema.json",
|
|
3
3
|
"name": "Syllable SDK",
|
|
4
4
|
"logo": {
|
|
5
|
-
"light": "/logo/
|
|
6
|
-
"dark": "/logo/
|
|
5
|
+
"light": "/logo/Logo_Black.webp",
|
|
6
|
+
"dark": "/logo/Logo_White.webp"
|
|
7
7
|
},
|
|
8
|
-
"favicon": "/logo/
|
|
8
|
+
"favicon": "/logo/favicon_32.png",
|
|
9
9
|
"colors": {
|
|
10
10
|
"primary": "#5a50f5",
|
|
11
11
|
"light": "#ff7255",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"pages": [
|
|
91
91
|
"Resources/res_WritePrompt",
|
|
92
92
|
"Resources/Tools",
|
|
93
|
-
"Resources/
|
|
93
|
+
"Resources/Messages",
|
|
94
94
|
"Resources/Channels"
|
|
95
95
|
]
|
|
96
96
|
},
|
|
@@ -5,6 +5,7 @@ import { AgentToolDefaults, AgentToolDefaults$Outbound } from "./agenttooldefaul
|
|
|
5
5
|
import { ChannelTargetResponse, ChannelTargetResponse$Outbound } from "./channeltargetresponse.js";
|
|
6
6
|
import { CustomMessageResponse, CustomMessageResponse$Outbound } from "./custommessageresponse.js";
|
|
7
7
|
import { PromptResponse, PromptResponse$Outbound } from "./promptresponse.js";
|
|
8
|
+
import { ToolResponse, ToolResponse$Outbound } from "./toolresponse.js";
|
|
8
9
|
/**
|
|
9
10
|
* When a user interacts with the Syllable system, they do so by communicating with an agent.
|
|
10
11
|
*
|
|
@@ -42,7 +43,7 @@ export type AgentResponse = {
|
|
|
42
43
|
*/
|
|
43
44
|
timezone: string;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
+
* User-configured parameter values for the agent's tools
|
|
46
47
|
*/
|
|
47
48
|
promptToolDefaults?: Array<AgentToolDefaults> | undefined;
|
|
48
49
|
/**
|
|
@@ -89,6 +90,10 @@ export type AgentResponse = {
|
|
|
89
90
|
* Channel targets associated with the agent
|
|
90
91
|
*/
|
|
91
92
|
channelTargets?: Array<ChannelTargetResponse> | null | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Tools associated with the agent
|
|
95
|
+
*/
|
|
96
|
+
tools?: Array<ToolResponse> | null | undefined;
|
|
92
97
|
};
|
|
93
98
|
/** @internal */
|
|
94
99
|
export declare const AgentResponse$inboundSchema: z.ZodType<AgentResponse, z.ZodTypeDef, unknown>;
|
|
@@ -116,6 +121,7 @@ export type AgentResponse$Outbound = {
|
|
|
116
121
|
prompt?: PromptResponse$Outbound | null | undefined;
|
|
117
122
|
custom_message?: CustomMessageResponse$Outbound | null | undefined;
|
|
118
123
|
channel_targets?: Array<ChannelTargetResponse$Outbound> | null | undefined;
|
|
124
|
+
tools?: Array<ToolResponse$Outbound> | null | undefined;
|
|
119
125
|
};
|
|
120
126
|
/** @internal */
|
|
121
127
|
export declare const AgentResponse$outboundSchema: z.ZodType<AgentResponse$Outbound, z.ZodTypeDef, AgentResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/agentresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"agentresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/agentresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7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AK,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAmCb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -36,6 +36,7 @@ const agenttooldefaults_js_1 = require("./agenttooldefaults.js");
|
|
|
36
36
|
const channeltargetresponse_js_1 = require("./channeltargetresponse.js");
|
|
37
37
|
const custommessageresponse_js_1 = require("./custommessageresponse.js");
|
|
38
38
|
const promptresponse_js_1 = require("./promptresponse.js");
|
|
39
|
+
const toolresponse_js_1 = require("./toolresponse.js");
|
|
39
40
|
/** @internal */
|
|
40
41
|
exports.AgentResponse$inboundSchema = z.object({
|
|
41
42
|
name: z.string(),
|
|
@@ -56,6 +57,7 @@ exports.AgentResponse$inboundSchema = z.object({
|
|
|
56
57
|
prompt: z.nullable(promptresponse_js_1.PromptResponse$inboundSchema).optional(),
|
|
57
58
|
custom_message: z.nullable(custommessageresponse_js_1.CustomMessageResponse$inboundSchema).optional(),
|
|
58
59
|
channel_targets: z.nullable(z.array(z.lazy(() => channeltargetresponse_js_1.ChannelTargetResponse$inboundSchema))).optional(),
|
|
60
|
+
tools: z.nullable(z.array(toolresponse_js_1.ToolResponse$inboundSchema)).optional(),
|
|
59
61
|
}).transform((v) => {
|
|
60
62
|
return (0, primitives_js_1.remap)(v, {
|
|
61
63
|
"prompt_id": "promptId",
|
|
@@ -89,6 +91,7 @@ exports.AgentResponse$outboundSchema = z.object({
|
|
|
89
91
|
prompt: z.nullable(promptresponse_js_1.PromptResponse$outboundSchema).optional(),
|
|
90
92
|
customMessage: z.nullable(custommessageresponse_js_1.CustomMessageResponse$outboundSchema).optional(),
|
|
91
93
|
channelTargets: z.nullable(z.array(z.lazy(() => channeltargetresponse_js_1.ChannelTargetResponse$outboundSchema))).optional(),
|
|
94
|
+
tools: z.nullable(z.array(toolresponse_js_1.ToolResponse$outboundSchema)).optional(),
|
|
92
95
|
}).transform((v) => {
|
|
93
96
|
return (0, primitives_js_1.remap)(v, {
|
|
94
97
|
promptId: "prompt_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentresponse.js","sourceRoot":"","sources":["../../src/models/components/agentresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agentresponse.js","sourceRoot":"","sources":["../../src/models/components/agentresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAkPH,kDAEC;AAED,sDAQC;AA5PD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAChC,yEAKoC;AACpC,yEAKoC;AACpC,2DAK6B;AAC7B,uDAK2B;AAwF3B,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,CAAC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G;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -71,6 +71,8 @@ export * from "./sessionproperties.js";
|
|
|
71
71
|
export * from "./sessionrecordingresponse.js";
|
|
72
72
|
export * from "./sessiontext.js";
|
|
73
73
|
export * from "./sessiontranscriptionresponse.js";
|
|
74
|
+
export * from "./statictoolparameter.js";
|
|
75
|
+
export * from "./statictoolparametertype.js";
|
|
74
76
|
export * from "./sttprovider.js";
|
|
75
77
|
export * from "./targetmodes.js";
|
|
76
78
|
export * from "./testmessage.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,cAAc,CAAC;AAC7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AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -90,6 +90,8 @@ __exportStar(require("./sessionproperties.js"), exports);
|
|
|
90
90
|
__exportStar(require("./sessionrecordingresponse.js"), exports);
|
|
91
91
|
__exportStar(require("./sessiontext.js"), exports);
|
|
92
92
|
__exportStar(require("./sessiontranscriptionresponse.js"), exports);
|
|
93
|
+
__exportStar(require("./statictoolparameter.js"), exports);
|
|
94
|
+
__exportStar(require("./statictoolparametertype.js"), exports);
|
|
93
95
|
__exportStar(require("./sttprovider.js"), exports);
|
|
94
96
|
__exportStar(require("./targetmodes.js"), exports);
|
|
95
97
|
__exportStar(require("./testmessage.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,+CAA6B;AAC7B,yDAAuC;AACvC,uDAAqC;AACrC,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,oDAAkC;AAClC,8DAA4C;AAC5C,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,yDAAuC;AACvC,kEAAgD;AAChD,iDAA+B;AAC/B,2DAAyC;AACzC,yDAAuC;AACvC,8DAA4C;AAC5C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,4DAA0C;AAC1C,+DAA6C;AAC7C,iDAA+B;AAC/B,6CAA2B;AAC3B,uDAAqC;AACrC,oDAAkC;AAClC,iEAA+C;AAC/C,mEAAiD;AACjD,2DAAyC;AACzC,yEAAuD;AACvD,gEAA8C;AAC9C,yEAAuD;AACvD,qEAAmD;AACnD,8EAA4D;AAC5D,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,2DAAyC;AACzC,gEAA8C;AAC9C,gEAA8C;AAC9C,wDAAsC;AACtC,2DAAyC;AACzC,qDAAmC;AACnC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,gDAA8B;AAC9B,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,4DAA0C;AAC1C,+CAA6B;AAC7B,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,yDAAuC;AACvC,gEAA8C;AAC9C,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,uEAAqD;AACrD,sDAAoC;AACpC,oDAAkC;AAClC,yDAAuC;AACvC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,+CAA6B;AAC7B,yDAAuC;AACvC,uDAAqC;AACrC,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,oDAAkC;AAClC,8DAA4C;AAC5C,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,yDAAuC;AACvC,kEAAgD;AAChD,iDAA+B;AAC/B,2DAAyC;AACzC,yDAAuC;AACvC,8DAA4C;AAC5C,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,4DAA0C;AAC1C,+DAA6C;AAC7C,iDAA+B;AAC/B,6CAA2B;AAC3B,uDAAqC;AACrC,oDAAkC;AAClC,iEAA+C;AAC/C,mEAAiD;AACjD,2DAAyC;AACzC,yEAAuD;AACvD,gEAA8C;AAC9C,yEAAuD;AACvD,qEAAmD;AACnD,8EAA4D;AAC5D,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,2DAAyC;AACzC,gEAA8C;AAC9C,gEAA8C;AAC9C,wDAAsC;AACtC,2DAAyC;AACzC,qDAAmC;AACnC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,gDAA8B;AAC9B,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC;AACrC,4DAA0C;AAC1C,+CAA6B;AAC7B,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,yDAAuC;AACvC,gEAA8C;AAC9C,mDAAiC;AACjC,oEAAkD;AAClD,2DAAyC;AACzC,+DAA6C;AAC7C,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,uEAAqD;AACrD,sDAAoC;AACpC,oDAAkC;AAClC,yDAAuC;AACvC,uDAAqC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { StaticToolParameterType } from "./statictoolparametertype.js";
|
|
5
|
+
/**
|
|
6
|
+
* A parameter for the tool whose value should be set at config time.
|
|
7
|
+
*/
|
|
8
|
+
export type StaticToolParameter = {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the parameter - must be unique within the tool.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* The description of the parameter.
|
|
15
|
+
*/
|
|
16
|
+
description?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the parameter is required to have a value assigned.
|
|
19
|
+
*/
|
|
20
|
+
required: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The expected type for a static tool parameter.
|
|
23
|
+
*/
|
|
24
|
+
type: StaticToolParameterType;
|
|
25
|
+
/**
|
|
26
|
+
* The default value for the parameter. If `type` is string, must be a string. If `type` is int, must be an int. If `type` is boolean, must be a boolean. If `type` is data_source_list, must be a list of strings (data source names).
|
|
27
|
+
*/
|
|
28
|
+
default?: any | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const StaticToolParameter$inboundSchema: z.ZodType<StaticToolParameter, z.ZodTypeDef, unknown>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type StaticToolParameter$Outbound = {
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string | null | undefined;
|
|
36
|
+
required: boolean;
|
|
37
|
+
type: string;
|
|
38
|
+
default?: any | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
export declare const StaticToolParameter$outboundSchema: z.ZodType<StaticToolParameter$Outbound, z.ZodTypeDef, StaticToolParameter>;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
+
*/
|
|
46
|
+
export declare namespace StaticToolParameter$ {
|
|
47
|
+
/** @deprecated use `StaticToolParameter$inboundSchema` instead. */
|
|
48
|
+
const inboundSchema: z.ZodType<StaticToolParameter, z.ZodTypeDef, unknown>;
|
|
49
|
+
/** @deprecated use `StaticToolParameter$outboundSchema` instead. */
|
|
50
|
+
const outboundSchema: z.ZodType<StaticToolParameter$Outbound, z.ZodTypeDef, StaticToolParameter>;
|
|
51
|
+
/** @deprecated use `StaticToolParameter$Outbound` instead. */
|
|
52
|
+
type Outbound = StaticToolParameter$Outbound;
|
|
53
|
+
}
|
|
54
|
+
export declare function staticToolParameterToJSON(staticToolParameter: StaticToolParameter): string;
|
|
55
|
+
export declare function staticToolParameterFromJSON(jsonString: string): SafeParseResult<StaticToolParameter, SDKValidationError>;
|
|
56
|
+
//# sourceMappingURL=statictoolparameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statictoolparameter.d.ts","sourceRoot":"","sources":["../../src/models/components/statictoolparameter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,uBAAuB,EAGxB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAOnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.StaticToolParameter$ = exports.StaticToolParameter$outboundSchema = exports.StaticToolParameter$inboundSchema = void 0;
|
|
30
|
+
exports.staticToolParameterToJSON = staticToolParameterToJSON;
|
|
31
|
+
exports.staticToolParameterFromJSON = staticToolParameterFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
+
const statictoolparametertype_js_1 = require("./statictoolparametertype.js");
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.StaticToolParameter$inboundSchema = z.object({
|
|
37
|
+
name: z.string(),
|
|
38
|
+
description: z.nullable(z.string()).optional(),
|
|
39
|
+
required: z.boolean(),
|
|
40
|
+
type: statictoolparametertype_js_1.StaticToolParameterType$inboundSchema,
|
|
41
|
+
default: z.nullable(z.any()).optional(),
|
|
42
|
+
});
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.StaticToolParameter$outboundSchema = z.object({
|
|
45
|
+
name: z.string(),
|
|
46
|
+
description: z.nullable(z.string()).optional(),
|
|
47
|
+
required: z.boolean(),
|
|
48
|
+
type: statictoolparametertype_js_1.StaticToolParameterType$outboundSchema,
|
|
49
|
+
default: z.nullable(z.any()).optional(),
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
var StaticToolParameter$;
|
|
56
|
+
(function (StaticToolParameter$) {
|
|
57
|
+
/** @deprecated use `StaticToolParameter$inboundSchema` instead. */
|
|
58
|
+
StaticToolParameter$.inboundSchema = exports.StaticToolParameter$inboundSchema;
|
|
59
|
+
/** @deprecated use `StaticToolParameter$outboundSchema` instead. */
|
|
60
|
+
StaticToolParameter$.outboundSchema = exports.StaticToolParameter$outboundSchema;
|
|
61
|
+
})(StaticToolParameter$ || (exports.StaticToolParameter$ = StaticToolParameter$ = {}));
|
|
62
|
+
function staticToolParameterToJSON(staticToolParameter) {
|
|
63
|
+
return JSON.stringify(exports.StaticToolParameter$outboundSchema.parse(staticToolParameter));
|
|
64
|
+
}
|
|
65
|
+
function staticToolParameterFromJSON(jsonString) {
|
|
66
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StaticToolParameter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StaticToolParameter' from JSON`);
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=statictoolparameter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statictoolparameter.js","sourceRoot":"","sources":["../../src/models/components/statictoolparameter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,8DAMC;AAED,kEAQC;AApGD,uCAAyB;AACzB,qDAAiD;AAGjD,6EAIsC;AA4BtC,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,IAAI,EAAE,kEAAqC;IAC3C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,IAAI,EAAE,mEAAsC;IAC5C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The expected type for a static tool parameter.
|
|
5
|
+
*/
|
|
6
|
+
export declare const StaticToolParameterType: {
|
|
7
|
+
readonly String: "string";
|
|
8
|
+
readonly Int: "int";
|
|
9
|
+
readonly Boolean: "boolean";
|
|
10
|
+
readonly DataSourceList: "data_source_list";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The expected type for a static tool parameter.
|
|
14
|
+
*/
|
|
15
|
+
export type StaticToolParameterType = ClosedEnum<typeof StaticToolParameterType>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const StaticToolParameterType$inboundSchema: z.ZodNativeEnum<typeof StaticToolParameterType>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const StaticToolParameterType$outboundSchema: z.ZodNativeEnum<typeof StaticToolParameterType>;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
+
*/
|
|
24
|
+
export declare namespace StaticToolParameterType$ {
|
|
25
|
+
/** @deprecated use `StaticToolParameterType$inboundSchema` instead. */
|
|
26
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
27
|
+
readonly String: "string";
|
|
28
|
+
readonly Int: "int";
|
|
29
|
+
readonly Boolean: "boolean";
|
|
30
|
+
readonly DataSourceList: "data_source_list";
|
|
31
|
+
}>;
|
|
32
|
+
/** @deprecated use `StaticToolParameterType$outboundSchema` instead. */
|
|
33
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
34
|
+
readonly String: "string";
|
|
35
|
+
readonly Int: "int";
|
|
36
|
+
readonly Boolean: "boolean";
|
|
37
|
+
readonly DataSourceList: "data_source_list";
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=statictoolparametertype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statictoolparametertype.d.ts","sourceRoot":"","sources":["../../src/models/components/statictoolparametertype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,aAAa,CACjE,OAAO,uBAAuB,CACS,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,aAAa,CAClE,OAAO,uBAAuB,CACS,CAAC;AAE1C;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa;;;;;MAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc;;;;;MAAyC,CAAC;CACtE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.StaticToolParameterType$ = exports.StaticToolParameterType$outboundSchema = exports.StaticToolParameterType$inboundSchema = exports.StaticToolParameterType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
/**
|
|
32
|
+
* The expected type for a static tool parameter.
|
|
33
|
+
*/
|
|
34
|
+
exports.StaticToolParameterType = {
|
|
35
|
+
String: "string",
|
|
36
|
+
Int: "int",
|
|
37
|
+
Boolean: "boolean",
|
|
38
|
+
DataSourceList: "data_source_list",
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.StaticToolParameterType$inboundSchema = z.nativeEnum(exports.StaticToolParameterType);
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.StaticToolParameterType$outboundSchema = exports.StaticToolParameterType$inboundSchema;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
var StaticToolParameterType$;
|
|
49
|
+
(function (StaticToolParameterType$) {
|
|
50
|
+
/** @deprecated use `StaticToolParameterType$inboundSchema` instead. */
|
|
51
|
+
StaticToolParameterType$.inboundSchema = exports.StaticToolParameterType$inboundSchema;
|
|
52
|
+
/** @deprecated use `StaticToolParameterType$outboundSchema` instead. */
|
|
53
|
+
StaticToolParameterType$.outboundSchema = exports.StaticToolParameterType$outboundSchema;
|
|
54
|
+
})(StaticToolParameterType$ || (exports.StaticToolParameterType$ = StaticToolParameterType$ = {}));
|
|
55
|
+
//# sourceMappingURL=statictoolparametertype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statictoolparametertype.js","sourceRoot":"","sources":["../../src/models/components/statictoolparametertype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,uBAAuB,GAAG;IACrC,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE,kBAAkB;CAC1B,CAAC;AAQX,gBAAgB;AACH,QAAA,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,+BAAuB,CAAC,CAAC;AAE1C,gBAAgB;AACH,QAAA,sCAAsC,GAE/C,6CAAqC,CAAC;AAE1C;;;GAGG;AACH,IAAiB,wBAAwB,CAKxC;AALD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AACvE,CAAC,EALgB,wBAAwB,wCAAxB,wBAAwB,QAKxC"}
|
|
@@ -3,6 +3,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import { InternalTool, InternalTool$Outbound } from "./internaltool.js";
|
|
6
|
+
import { StaticToolParameter, StaticToolParameter$Outbound } from "./statictoolparameter.js";
|
|
6
7
|
import { ToolHttpEndpoint, ToolHttpEndpoint$Outbound } from "./toolhttpendpoint.js";
|
|
7
8
|
import { ToolParameterDefault, ToolParameterDefault$Outbound } from "./toolparameterdefault.js";
|
|
8
9
|
export declare const Type: {
|
|
@@ -40,6 +41,10 @@ export type ToolDefinition = {
|
|
|
40
41
|
defaults?: any | {
|
|
41
42
|
[k: string]: ToolParameterDefault;
|
|
42
43
|
} | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Parameters for the tool whose values should be set at config time (i.e., not provided by the LLM).
|
|
46
|
+
*/
|
|
47
|
+
staticParameters?: Array<StaticToolParameter> | null | undefined;
|
|
43
48
|
/**
|
|
44
49
|
* The optional result of the tool call. Only used for `context` tools.
|
|
45
50
|
*/
|
|
@@ -101,6 +106,7 @@ export type ToolDefinition$Outbound = {
|
|
|
101
106
|
defaults?: any | {
|
|
102
107
|
[k: string]: ToolParameterDefault$Outbound;
|
|
103
108
|
} | null | undefined;
|
|
109
|
+
static_parameters?: Array<StaticToolParameter$Outbound> | null | undefined;
|
|
104
110
|
result?: any | null | undefined;
|
|
105
111
|
};
|
|
106
112
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooldefinition.d.ts","sourceRoot":"","sources":["../../src/models/components/tooldefinition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"tooldefinition.d.ts","sourceRoot":"","sources":["../../src/models/components/tooldefinition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,IAAI;;;;;CAKP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAA;CAAE,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,QAAQ,CAA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pC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -32,8 +32,10 @@ exports.defaultsFromJSON = defaultsFromJSON;
|
|
|
32
32
|
exports.toolDefinitionToJSON = toolDefinitionToJSON;
|
|
33
33
|
exports.toolDefinitionFromJSON = toolDefinitionFromJSON;
|
|
34
34
|
const z = __importStar(require("zod"));
|
|
35
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
35
36
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
36
37
|
const internaltool_js_1 = require("./internaltool.js");
|
|
38
|
+
const statictoolparameter_js_1 = require("./statictoolparameter.js");
|
|
37
39
|
const toolhttpendpoint_js_1 = require("./toolhttpendpoint.js");
|
|
38
40
|
const toolparameterdefault_js_1 = require("./toolparameterdefault.js");
|
|
39
41
|
exports.Type = {
|
|
@@ -84,7 +86,13 @@ exports.ToolDefinition$inboundSchema = z.object({
|
|
|
84
86
|
tool: internaltool_js_1.InternalTool$inboundSchema,
|
|
85
87
|
endpoint: z.nullable(toolhttpendpoint_js_1.ToolHttpEndpoint$inboundSchema).optional(),
|
|
86
88
|
defaults: z.nullable(z.union([z.any(), z.record(toolparameterdefault_js_1.ToolParameterDefault$inboundSchema)])).optional(),
|
|
89
|
+
static_parameters: z.nullable(z.array(statictoolparameter_js_1.StaticToolParameter$inboundSchema))
|
|
90
|
+
.optional(),
|
|
87
91
|
result: z.nullable(z.any()).optional(),
|
|
92
|
+
}).transform((v) => {
|
|
93
|
+
return (0, primitives_js_1.remap)(v, {
|
|
94
|
+
"static_parameters": "staticParameters",
|
|
95
|
+
});
|
|
88
96
|
});
|
|
89
97
|
/** @internal */
|
|
90
98
|
exports.ToolDefinition$outboundSchema = z.object({
|
|
@@ -92,7 +100,13 @@ exports.ToolDefinition$outboundSchema = z.object({
|
|
|
92
100
|
tool: internaltool_js_1.InternalTool$outboundSchema,
|
|
93
101
|
endpoint: z.nullable(toolhttpendpoint_js_1.ToolHttpEndpoint$outboundSchema).optional(),
|
|
94
102
|
defaults: z.nullable(z.union([z.any(), z.record(toolparameterdefault_js_1.ToolParameterDefault$outboundSchema)])).optional(),
|
|
103
|
+
staticParameters: z.nullable(z.array(statictoolparameter_js_1.StaticToolParameter$outboundSchema))
|
|
104
|
+
.optional(),
|
|
95
105
|
result: z.nullable(z.any()).optional(),
|
|
106
|
+
}).transform((v) => {
|
|
107
|
+
return (0, primitives_js_1.remap)(v, {
|
|
108
|
+
staticParameters: "static_parameters",
|
|
109
|
+
});
|
|
96
110
|
});
|
|
97
111
|
/**
|
|
98
112
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooldefinition.js","sourceRoot":"","sources":["../../src/models/components/tooldefinition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tooldefinition.js","sourceRoot":"","sources":["../../src/models/components/tooldefinition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAgIH,wCAEC;AAED,4CAQC;AAuED,oDAEC;AAED,wDAQC;AA7ND,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,uDAK2B;AAC3B,qEAKkC;AAClC,+DAK+B;AAC/B,uEAKmC;AAEtB,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACF,CAAC;AAsCX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc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EAAE,mBAAmB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
package/openapi.json
CHANGED
|
@@ -6019,7 +6019,7 @@
|
|
|
6019
6019
|
},
|
|
6020
6020
|
"type": "array",
|
|
6021
6021
|
"title": "Prompt Tool Defaults",
|
|
6022
|
-
"description": "
|
|
6022
|
+
"description": "User-configured parameter values for the agent's tools"
|
|
6023
6023
|
},
|
|
6024
6024
|
"languages": {
|
|
6025
6025
|
"items": {
|
|
@@ -6163,7 +6163,7 @@
|
|
|
6163
6163
|
},
|
|
6164
6164
|
"type": "array",
|
|
6165
6165
|
"title": "Prompt Tool Defaults",
|
|
6166
|
-
"description": "
|
|
6166
|
+
"description": "User-configured parameter values for the agent's tools"
|
|
6167
6167
|
},
|
|
6168
6168
|
"languages": {
|
|
6169
6169
|
"items": {
|
|
@@ -6267,6 +6267,21 @@
|
|
|
6267
6267
|
],
|
|
6268
6268
|
"title": "Channel Targets",
|
|
6269
6269
|
"description": "Channel targets associated with the agent"
|
|
6270
|
+
},
|
|
6271
|
+
"tools": {
|
|
6272
|
+
"anyOf": [
|
|
6273
|
+
{
|
|
6274
|
+
"items": {
|
|
6275
|
+
"$ref": "#/components/schemas/ToolResponse"
|
|
6276
|
+
},
|
|
6277
|
+
"type": "array"
|
|
6278
|
+
},
|
|
6279
|
+
{
|
|
6280
|
+
"type": "null"
|
|
6281
|
+
}
|
|
6282
|
+
],
|
|
6283
|
+
"title": "Tools",
|
|
6284
|
+
"description": "Tools associated with the agent"
|
|
6270
6285
|
}
|
|
6271
6286
|
},
|
|
6272
6287
|
"type": "object",
|
|
@@ -6393,7 +6408,7 @@
|
|
|
6393
6408
|
},
|
|
6394
6409
|
"type": "array",
|
|
6395
6410
|
"title": "Prompt Tool Defaults",
|
|
6396
|
-
"description": "
|
|
6411
|
+
"description": "User-configured parameter values for the agent's tools"
|
|
6397
6412
|
},
|
|
6398
6413
|
"languages": {
|
|
6399
6414
|
"items": {
|
|
@@ -10590,6 +10605,65 @@
|
|
|
10590
10605
|
"title": "SessionTranscriptionResponse",
|
|
10591
10606
|
"description": "Text transcript of a given session."
|
|
10592
10607
|
},
|
|
10608
|
+
"StaticToolParameter": {
|
|
10609
|
+
"properties": {
|
|
10610
|
+
"name": {
|
|
10611
|
+
"type": "string",
|
|
10612
|
+
"title": "Name",
|
|
10613
|
+
"description": "The name of the parameter - must be unique within the tool."
|
|
10614
|
+
},
|
|
10615
|
+
"description": {
|
|
10616
|
+
"anyOf": [
|
|
10617
|
+
{
|
|
10618
|
+
"type": "string"
|
|
10619
|
+
},
|
|
10620
|
+
{
|
|
10621
|
+
"type": "null"
|
|
10622
|
+
}
|
|
10623
|
+
],
|
|
10624
|
+
"title": "Description",
|
|
10625
|
+
"description": "The description of the parameter."
|
|
10626
|
+
},
|
|
10627
|
+
"required": {
|
|
10628
|
+
"type": "boolean",
|
|
10629
|
+
"title": "Required",
|
|
10630
|
+
"description": "Whether the parameter is required to have a value assigned."
|
|
10631
|
+
},
|
|
10632
|
+
"type": {
|
|
10633
|
+
"$ref": "#/components/schemas/StaticToolParameterType",
|
|
10634
|
+
"description": "The expected type for the parameter."
|
|
10635
|
+
},
|
|
10636
|
+
"default": {
|
|
10637
|
+
"anyOf": [
|
|
10638
|
+
{},
|
|
10639
|
+
{
|
|
10640
|
+
"type": "null"
|
|
10641
|
+
}
|
|
10642
|
+
],
|
|
10643
|
+
"title": "Default",
|
|
10644
|
+
"description": "The default value for the parameter. If `type` is string, must be a string. If `type` is int, must be an int. If `type` is boolean, must be a boolean. If `type` is data_source_list, must be a list of strings (data source names)."
|
|
10645
|
+
}
|
|
10646
|
+
},
|
|
10647
|
+
"type": "object",
|
|
10648
|
+
"required": [
|
|
10649
|
+
"name",
|
|
10650
|
+
"required",
|
|
10651
|
+
"type"
|
|
10652
|
+
],
|
|
10653
|
+
"title": "StaticToolParameter",
|
|
10654
|
+
"description": "A parameter for the tool whose value should be set at config time."
|
|
10655
|
+
},
|
|
10656
|
+
"StaticToolParameterType": {
|
|
10657
|
+
"type": "string",
|
|
10658
|
+
"enum": [
|
|
10659
|
+
"string",
|
|
10660
|
+
"int",
|
|
10661
|
+
"boolean",
|
|
10662
|
+
"data_source_list"
|
|
10663
|
+
],
|
|
10664
|
+
"title": "StaticToolParameterType",
|
|
10665
|
+
"description": "The expected type for a static tool parameter."
|
|
10666
|
+
},
|
|
10593
10667
|
"SttProvider": {
|
|
10594
10668
|
"type": "string",
|
|
10595
10669
|
"enum": [
|
|
@@ -10805,6 +10879,21 @@
|
|
|
10805
10879
|
"title": "Defaults",
|
|
10806
10880
|
"description": "The default values for the parameters of the function/tool call."
|
|
10807
10881
|
},
|
|
10882
|
+
"static_parameters": {
|
|
10883
|
+
"anyOf": [
|
|
10884
|
+
{
|
|
10885
|
+
"items": {
|
|
10886
|
+
"$ref": "#/components/schemas/StaticToolParameter"
|
|
10887
|
+
},
|
|
10888
|
+
"type": "array"
|
|
10889
|
+
},
|
|
10890
|
+
{
|
|
10891
|
+
"type": "null"
|
|
10892
|
+
}
|
|
10893
|
+
],
|
|
10894
|
+
"title": "Static Parameters",
|
|
10895
|
+
"description": "Parameters for the tool whose values should be set at config time (i.e., not provided by the LLM)."
|
|
10896
|
+
},
|
|
10808
10897
|
"result": {
|
|
10809
10898
|
"anyOf": [
|
|
10810
10899
|
{},
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.2",
|
|
60
|
-
sdkVersion: "0.1.0-alpha.
|
|
61
|
-
genVersion: "2.
|
|
60
|
+
sdkVersion: "0.1.0-alpha.43",
|
|
61
|
+
genVersion: "2.512.4",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.43 2.512.4 0.0.2 syllable-sdk",
|
|
64
64
|
} as const;
|
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
PromptResponse$Outbound,
|
|
32
32
|
PromptResponse$outboundSchema,
|
|
33
33
|
} from "./promptresponse.js";
|
|
34
|
+
import {
|
|
35
|
+
ToolResponse,
|
|
36
|
+
ToolResponse$inboundSchema,
|
|
37
|
+
ToolResponse$Outbound,
|
|
38
|
+
ToolResponse$outboundSchema,
|
|
39
|
+
} from "./toolresponse.js";
|
|
34
40
|
|
|
35
41
|
/**
|
|
36
42
|
* When a user interacts with the Syllable system, they do so by communicating with an agent.
|
|
@@ -69,7 +75,7 @@ export type AgentResponse = {
|
|
|
69
75
|
*/
|
|
70
76
|
timezone: string;
|
|
71
77
|
/**
|
|
72
|
-
*
|
|
78
|
+
* User-configured parameter values for the agent's tools
|
|
73
79
|
*/
|
|
74
80
|
promptToolDefaults?: Array<AgentToolDefaults> | undefined;
|
|
75
81
|
/**
|
|
@@ -112,6 +118,10 @@ export type AgentResponse = {
|
|
|
112
118
|
* Channel targets associated with the agent
|
|
113
119
|
*/
|
|
114
120
|
channelTargets?: Array<ChannelTargetResponse> | null | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Tools associated with the agent
|
|
123
|
+
*/
|
|
124
|
+
tools?: Array<ToolResponse> | null | undefined;
|
|
115
125
|
};
|
|
116
126
|
|
|
117
127
|
/** @internal */
|
|
@@ -140,6 +150,7 @@ export const AgentResponse$inboundSchema: z.ZodType<
|
|
|
140
150
|
channel_targets: z.nullable(
|
|
141
151
|
z.array(z.lazy(() => ChannelTargetResponse$inboundSchema)),
|
|
142
152
|
).optional(),
|
|
153
|
+
tools: z.nullable(z.array(ToolResponse$inboundSchema)).optional(),
|
|
143
154
|
}).transform((v) => {
|
|
144
155
|
return remap$(v, {
|
|
145
156
|
"prompt_id": "promptId",
|
|
@@ -174,6 +185,7 @@ export type AgentResponse$Outbound = {
|
|
|
174
185
|
prompt?: PromptResponse$Outbound | null | undefined;
|
|
175
186
|
custom_message?: CustomMessageResponse$Outbound | null | undefined;
|
|
176
187
|
channel_targets?: Array<ChannelTargetResponse$Outbound> | null | undefined;
|
|
188
|
+
tools?: Array<ToolResponse$Outbound> | null | undefined;
|
|
177
189
|
};
|
|
178
190
|
|
|
179
191
|
/** @internal */
|
|
@@ -202,6 +214,7 @@ export const AgentResponse$outboundSchema: z.ZodType<
|
|
|
202
214
|
channelTargets: z.nullable(
|
|
203
215
|
z.array(z.lazy(() => ChannelTargetResponse$outboundSchema)),
|
|
204
216
|
).optional(),
|
|
217
|
+
tools: z.nullable(z.array(ToolResponse$outboundSchema)).optional(),
|
|
205
218
|
}).transform((v) => {
|
|
206
219
|
return remap$(v, {
|
|
207
220
|
promptId: "prompt_id",
|
|
@@ -75,6 +75,8 @@ export * from "./sessionproperties.js";
|
|
|
75
75
|
export * from "./sessionrecordingresponse.js";
|
|
76
76
|
export * from "./sessiontext.js";
|
|
77
77
|
export * from "./sessiontranscriptionresponse.js";
|
|
78
|
+
export * from "./statictoolparameter.js";
|
|
79
|
+
export * from "./statictoolparametertype.js";
|
|
78
80
|
export * from "./sttprovider.js";
|
|
79
81
|
export * from "./targetmodes.js";
|
|
80
82
|
export * from "./testmessage.js";
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
StaticToolParameterType,
|
|
11
|
+
StaticToolParameterType$inboundSchema,
|
|
12
|
+
StaticToolParameterType$outboundSchema,
|
|
13
|
+
} from "./statictoolparametertype.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A parameter for the tool whose value should be set at config time.
|
|
17
|
+
*/
|
|
18
|
+
export type StaticToolParameter = {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the parameter - must be unique within the tool.
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* The description of the parameter.
|
|
25
|
+
*/
|
|
26
|
+
description?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the parameter is required to have a value assigned.
|
|
29
|
+
*/
|
|
30
|
+
required: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The expected type for a static tool parameter.
|
|
33
|
+
*/
|
|
34
|
+
type: StaticToolParameterType;
|
|
35
|
+
/**
|
|
36
|
+
* The default value for the parameter. If `type` is string, must be a string. If `type` is int, must be an int. If `type` is boolean, must be a boolean. If `type` is data_source_list, must be a list of strings (data source names).
|
|
37
|
+
*/
|
|
38
|
+
default?: any | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const StaticToolParameter$inboundSchema: z.ZodType<
|
|
43
|
+
StaticToolParameter,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
name: z.string(),
|
|
48
|
+
description: z.nullable(z.string()).optional(),
|
|
49
|
+
required: z.boolean(),
|
|
50
|
+
type: StaticToolParameterType$inboundSchema,
|
|
51
|
+
default: z.nullable(z.any()).optional(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type StaticToolParameter$Outbound = {
|
|
56
|
+
name: string;
|
|
57
|
+
description?: string | null | undefined;
|
|
58
|
+
required: boolean;
|
|
59
|
+
type: string;
|
|
60
|
+
default?: any | null | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const StaticToolParameter$outboundSchema: z.ZodType<
|
|
65
|
+
StaticToolParameter$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
StaticToolParameter
|
|
68
|
+
> = z.object({
|
|
69
|
+
name: z.string(),
|
|
70
|
+
description: z.nullable(z.string()).optional(),
|
|
71
|
+
required: z.boolean(),
|
|
72
|
+
type: StaticToolParameterType$outboundSchema,
|
|
73
|
+
default: z.nullable(z.any()).optional(),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
+
*/
|
|
80
|
+
export namespace StaticToolParameter$ {
|
|
81
|
+
/** @deprecated use `StaticToolParameter$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema = StaticToolParameter$inboundSchema;
|
|
83
|
+
/** @deprecated use `StaticToolParameter$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema = StaticToolParameter$outboundSchema;
|
|
85
|
+
/** @deprecated use `StaticToolParameter$Outbound` instead. */
|
|
86
|
+
export type Outbound = StaticToolParameter$Outbound;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function staticToolParameterToJSON(
|
|
90
|
+
staticToolParameter: StaticToolParameter,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
StaticToolParameter$outboundSchema.parse(staticToolParameter),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function staticToolParameterFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<StaticToolParameter, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => StaticToolParameter$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'StaticToolParameter' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The expected type for a static tool parameter.
|
|
10
|
+
*/
|
|
11
|
+
export const StaticToolParameterType = {
|
|
12
|
+
String: "string",
|
|
13
|
+
Int: "int",
|
|
14
|
+
Boolean: "boolean",
|
|
15
|
+
DataSourceList: "data_source_list",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* The expected type for a static tool parameter.
|
|
19
|
+
*/
|
|
20
|
+
export type StaticToolParameterType = ClosedEnum<
|
|
21
|
+
typeof StaticToolParameterType
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const StaticToolParameterType$inboundSchema: z.ZodNativeEnum<
|
|
26
|
+
typeof StaticToolParameterType
|
|
27
|
+
> = z.nativeEnum(StaticToolParameterType);
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const StaticToolParameterType$outboundSchema: z.ZodNativeEnum<
|
|
31
|
+
typeof StaticToolParameterType
|
|
32
|
+
> = StaticToolParameterType$inboundSchema;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
+
*/
|
|
38
|
+
export namespace StaticToolParameterType$ {
|
|
39
|
+
/** @deprecated use `StaticToolParameterType$inboundSchema` instead. */
|
|
40
|
+
export const inboundSchema = StaticToolParameterType$inboundSchema;
|
|
41
|
+
/** @deprecated use `StaticToolParameterType$outboundSchema` instead. */
|
|
42
|
+
export const outboundSchema = StaticToolParameterType$outboundSchema;
|
|
43
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -13,6 +14,12 @@ import {
|
|
|
13
14
|
InternalTool$Outbound,
|
|
14
15
|
InternalTool$outboundSchema,
|
|
15
16
|
} from "./internaltool.js";
|
|
17
|
+
import {
|
|
18
|
+
StaticToolParameter,
|
|
19
|
+
StaticToolParameter$inboundSchema,
|
|
20
|
+
StaticToolParameter$Outbound,
|
|
21
|
+
StaticToolParameter$outboundSchema,
|
|
22
|
+
} from "./statictoolparameter.js";
|
|
16
23
|
import {
|
|
17
24
|
ToolHttpEndpoint,
|
|
18
25
|
ToolHttpEndpoint$inboundSchema,
|
|
@@ -59,6 +66,10 @@ export type ToolDefinition = {
|
|
|
59
66
|
* The default values for the parameters of the function/tool call.
|
|
60
67
|
*/
|
|
61
68
|
defaults?: any | { [k: string]: ToolParameterDefault } | null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Parameters for the tool whose values should be set at config time (i.e., not provided by the LLM).
|
|
71
|
+
*/
|
|
72
|
+
staticParameters?: Array<StaticToolParameter> | null | undefined;
|
|
62
73
|
/**
|
|
63
74
|
* The optional result of the tool call. Only used for `context` tools.
|
|
64
75
|
*/
|
|
@@ -143,7 +154,13 @@ export const ToolDefinition$inboundSchema: z.ZodType<
|
|
|
143
154
|
defaults: z.nullable(
|
|
144
155
|
z.union([z.any(), z.record(ToolParameterDefault$inboundSchema)]),
|
|
145
156
|
).optional(),
|
|
157
|
+
static_parameters: z.nullable(z.array(StaticToolParameter$inboundSchema))
|
|
158
|
+
.optional(),
|
|
146
159
|
result: z.nullable(z.any()).optional(),
|
|
160
|
+
}).transform((v) => {
|
|
161
|
+
return remap$(v, {
|
|
162
|
+
"static_parameters": "staticParameters",
|
|
163
|
+
});
|
|
147
164
|
});
|
|
148
165
|
|
|
149
166
|
/** @internal */
|
|
@@ -156,6 +173,7 @@ export type ToolDefinition$Outbound = {
|
|
|
156
173
|
| { [k: string]: ToolParameterDefault$Outbound }
|
|
157
174
|
| null
|
|
158
175
|
| undefined;
|
|
176
|
+
static_parameters?: Array<StaticToolParameter$Outbound> | null | undefined;
|
|
159
177
|
result?: any | null | undefined;
|
|
160
178
|
};
|
|
161
179
|
|
|
@@ -171,7 +189,13 @@ export const ToolDefinition$outboundSchema: z.ZodType<
|
|
|
171
189
|
defaults: z.nullable(
|
|
172
190
|
z.union([z.any(), z.record(ToolParameterDefault$outboundSchema)]),
|
|
173
191
|
).optional(),
|
|
192
|
+
staticParameters: z.nullable(z.array(StaticToolParameter$outboundSchema))
|
|
193
|
+
.optional(),
|
|
174
194
|
result: z.nullable(z.any()).optional(),
|
|
195
|
+
}).transform((v) => {
|
|
196
|
+
return remap$(v, {
|
|
197
|
+
staticParameters: "static_parameters",
|
|
198
|
+
});
|
|
175
199
|
});
|
|
176
200
|
|
|
177
201
|
/**
|