syllable-sdk 0.1.0-alpha.57 → 0.1.0-alpha.58

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "syllable-sdk",
5
- "version": "0.1.0-alpha.57",
5
+ "version": "0.1.0-alpha.58",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
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.57";
30
+ readonly sdkVersion: "0.1.0-alpha.58";
31
31
  readonly genVersion: "2.512.4";
32
- readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.57 2.512.4 0.0.2 syllable-sdk";
32
+ readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.58 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.57",
34
+ sdkVersion: "0.1.0-alpha.58",
35
35
  genVersion: "2.512.4",
36
- userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.57 2.512.4 0.0.2 syllable-sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.58 2.512.4 0.0.2 syllable-sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -25,7 +25,7 @@ export type PromptCreateRequest = {
25
25
  tools?: Array<string> | undefined;
26
26
  llmConfig: PromptLlmConfig;
27
27
  /**
28
- * Whether to include the default tools (`summary`, `hangup`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
28
+ * Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
29
29
  */
30
30
  includeDefaultTools?: boolean | undefined;
31
31
  };
@@ -2,6 +2,7 @@ import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { PromptLlmConfig, PromptLlmConfig$Outbound } from "./promptllmconfig.js";
5
+ import { ToolResponse, ToolResponse$Outbound } from "./toolresponse.js";
5
6
  /**
6
7
  * A prompt defines the behavior of an agent by delivering instructions to the LLM about how the
7
8
  *
@@ -28,6 +29,8 @@ export type PromptResponse = {
28
29
  context?: string | null | undefined;
29
30
  /**
30
31
  * Names of the tools to which the prompt has access
32
+ *
33
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
31
34
  */
32
35
  tools?: Array<string> | undefined;
33
36
  llmConfig: PromptLlmConfig;
@@ -51,6 +54,10 @@ export type PromptResponse = {
51
54
  * The number of agents using the prompt
52
55
  */
53
56
  agentCount?: number | null | undefined;
57
+ /**
58
+ * Tools to which the prompt has access
59
+ */
60
+ toolsFull?: Array<ToolResponse> | null | undefined;
54
61
  };
55
62
  /** @internal */
56
63
  export declare const PromptResponse$inboundSchema: z.ZodType<PromptResponse, z.ZodTypeDef, unknown>;
@@ -67,6 +74,7 @@ export type PromptResponse$Outbound = {
67
74
  last_updated: string | null;
68
75
  last_updated_by?: string | null | undefined;
69
76
  agent_count?: number | null | undefined;
77
+ tools_full?: Array<ToolResponse$Outbound> | null | undefined;
70
78
  };
71
79
  /** @internal */
72
80
  export declare const PromptResponse$outboundSchema: z.ZodType<PromptResponse$Outbound, z.ZodTypeDef, PromptResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"promptresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/prom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pC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,wBAAwB,CAAC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,UAAU,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAuBd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -33,6 +33,7 @@ const z = __importStar(require("zod"));
33
33
  const primitives_js_1 = require("../../lib/primitives.js");
34
34
  const schemas_js_1 = require("../../lib/schemas.js");
35
35
  const promptllmconfig_js_1 = require("./promptllmconfig.js");
36
+ const toolresponse_js_1 = require("./toolresponse.js");
36
37
  /** @internal */
37
38
  exports.PromptResponse$inboundSchema = z.object({
38
39
  name: z.string(),
@@ -46,6 +47,7 @@ exports.PromptResponse$inboundSchema = z.object({
46
47
  last_updated: z.nullable(z.string()),
47
48
  last_updated_by: z.nullable(z.string()).optional(),
48
49
  agent_count: z.nullable(z.number().int()).optional(),
50
+ tools_full: z.nullable(z.array(toolresponse_js_1.ToolResponse$inboundSchema)).optional(),
49
51
  }).transform((v) => {
50
52
  return (0, primitives_js_1.remap)(v, {
51
53
  "llm_config": "llmConfig",
@@ -53,6 +55,7 @@ exports.PromptResponse$inboundSchema = z.object({
53
55
  "last_updated": "lastUpdated",
54
56
  "last_updated_by": "lastUpdatedBy",
55
57
  "agent_count": "agentCount",
58
+ "tools_full": "toolsFull",
56
59
  });
57
60
  });
58
61
  /** @internal */
@@ -68,6 +71,7 @@ exports.PromptResponse$outboundSchema = z.object({
68
71
  lastUpdated: z.nullable(z.string()),
69
72
  lastUpdatedBy: z.nullable(z.string()).optional(),
70
73
  agentCount: z.nullable(z.number().int()).optional(),
74
+ toolsFull: z.nullable(z.array(toolresponse_js_1.ToolResponse$outboundSchema)).optional(),
71
75
  }).transform((v) => {
72
76
  return (0, primitives_js_1.remap)(v, {
73
77
  llmConfig: "llm_config",
@@ -75,6 +79,7 @@ exports.PromptResponse$outboundSchema = z.object({
75
79
  lastUpdated: "last_updated",
76
80
  lastUpdatedBy: "last_updated_by",
77
81
  agentCount: "agent_count",
82
+ toolsFull: "tools_full",
78
83
  });
79
84
  });
80
85
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"promptresponse.js","sourceRoot":"","sources":["../../src/models/components/promptresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmJH,oDAEC;AAED,wDAQC;AA7JD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,6DAK8B;AAqD9B,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAA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C,CAAC,QAAQ,EAAE;IAChD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,6CAA2B,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,YAAY,EAAE,eAAe;QAC7B,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,iBAAiB;QAChC,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,YAAY;KACxB,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"}
@@ -33,7 +33,7 @@ export type PromptUpdateRequest = {
33
33
  */
34
34
  editComments?: string | null | undefined;
35
35
  /**
36
- * Whether to include the default tools (`summary`, `hangup`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
36
+ * Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
37
37
  */
38
38
  includeDefaultTools?: boolean | undefined;
39
39
  };
package/openapi.json CHANGED
@@ -11919,7 +11919,7 @@
11919
11919
  "include_default_tools": {
11920
11920
  "type": "boolean",
11921
11921
  "title": "Include Default Tools",
11922
- "description": "Whether to include the default tools (`summary`, `hangup`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.",
11922
+ "description": "Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.",
11923
11923
  "default": true
11924
11924
  }
11925
11925
  },
@@ -12131,7 +12131,8 @@
12131
12131
  "type": "array",
12132
12132
  "title": "Tools",
12133
12133
  "description": "Names of the tools to which the prompt has access",
12134
- "default": []
12134
+ "default": [],
12135
+ "deprecated": true
12135
12136
  },
12136
12137
  "llm_config": {
12137
12138
  "$ref": "#/components/schemas/PromptLlmConfig",
@@ -12192,6 +12193,21 @@
12192
12193
  ],
12193
12194
  "title": "Agent Count",
12194
12195
  "description": "The number of agents using the prompt"
12196
+ },
12197
+ "tools_full": {
12198
+ "anyOf": [
12199
+ {
12200
+ "items": {
12201
+ "$ref": "#/components/schemas/ToolResponse"
12202
+ },
12203
+ "type": "array"
12204
+ },
12205
+ {
12206
+ "type": "null"
12207
+ }
12208
+ ],
12209
+ "title": "Tools Full",
12210
+ "description": "Tools to which the prompt has access"
12195
12211
  }
12196
12212
  },
12197
12213
  "type": "object",
@@ -12274,7 +12290,7 @@
12274
12290
  "include_default_tools": {
12275
12291
  "type": "boolean",
12276
12292
  "title": "Include Default Tools",
12277
- "description": "Whether to include the default tools (`summary`, `hangup`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.",
12293
+ "description": "Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.",
12278
12294
  "default": true
12279
12295
  }
12280
12296
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syllable-sdk",
3
- "version": "0.1.0-alpha.57",
3
+ "version": "0.1.0-alpha.58",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
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.57",
60
+ sdkVersion: "0.1.0-alpha.58",
61
61
  genVersion: "2.512.4",
62
62
  userAgent:
63
- "speakeasy-sdk/typescript 0.1.0-alpha.57 2.512.4 0.0.2 syllable-sdk",
63
+ "speakeasy-sdk/typescript 0.1.0-alpha.58 2.512.4 0.0.2 syllable-sdk",
64
64
  } as const;
@@ -37,7 +37,7 @@ export type PromptCreateRequest = {
37
37
  tools?: Array<string> | undefined;
38
38
  llmConfig: PromptLlmConfig;
39
39
  /**
40
- * Whether to include the default tools (`summary`, `hangup`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
40
+ * Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
41
41
  */
42
42
  includeDefaultTools?: boolean | undefined;
43
43
  };
@@ -13,6 +13,12 @@ import {
13
13
  PromptLlmConfig$Outbound,
14
14
  PromptLlmConfig$outboundSchema,
15
15
  } from "./promptllmconfig.js";
16
+ import {
17
+ ToolResponse,
18
+ ToolResponse$inboundSchema,
19
+ ToolResponse$Outbound,
20
+ ToolResponse$outboundSchema,
21
+ } from "./toolresponse.js";
16
22
 
17
23
  /**
18
24
  * A prompt defines the behavior of an agent by delivering instructions to the LLM about how the
@@ -40,6 +46,8 @@ export type PromptResponse = {
40
46
  context?: string | null | undefined;
41
47
  /**
42
48
  * Names of the tools to which the prompt has access
49
+ *
50
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
43
51
  */
44
52
  tools?: Array<string> | undefined;
45
53
  llmConfig: PromptLlmConfig;
@@ -63,6 +71,10 @@ export type PromptResponse = {
63
71
  * The number of agents using the prompt
64
72
  */
65
73
  agentCount?: number | null | undefined;
74
+ /**
75
+ * Tools to which the prompt has access
76
+ */
77
+ toolsFull?: Array<ToolResponse> | null | undefined;
66
78
  };
67
79
 
68
80
  /** @internal */
@@ -82,6 +94,7 @@ export const PromptResponse$inboundSchema: z.ZodType<
82
94
  last_updated: z.nullable(z.string()),
83
95
  last_updated_by: z.nullable(z.string()).optional(),
84
96
  agent_count: z.nullable(z.number().int()).optional(),
97
+ tools_full: z.nullable(z.array(ToolResponse$inboundSchema)).optional(),
85
98
  }).transform((v) => {
86
99
  return remap$(v, {
87
100
  "llm_config": "llmConfig",
@@ -89,6 +102,7 @@ export const PromptResponse$inboundSchema: z.ZodType<
89
102
  "last_updated": "lastUpdated",
90
103
  "last_updated_by": "lastUpdatedBy",
91
104
  "agent_count": "agentCount",
105
+ "tools_full": "toolsFull",
92
106
  });
93
107
  });
94
108
 
@@ -105,6 +119,7 @@ export type PromptResponse$Outbound = {
105
119
  last_updated: string | null;
106
120
  last_updated_by?: string | null | undefined;
107
121
  agent_count?: number | null | undefined;
122
+ tools_full?: Array<ToolResponse$Outbound> | null | undefined;
108
123
  };
109
124
 
110
125
  /** @internal */
@@ -124,6 +139,7 @@ export const PromptResponse$outboundSchema: z.ZodType<
124
139
  lastUpdated: z.nullable(z.string()),
125
140
  lastUpdatedBy: z.nullable(z.string()).optional(),
126
141
  agentCount: z.nullable(z.number().int()).optional(),
142
+ toolsFull: z.nullable(z.array(ToolResponse$outboundSchema)).optional(),
127
143
  }).transform((v) => {
128
144
  return remap$(v, {
129
145
  llmConfig: "llm_config",
@@ -131,6 +147,7 @@ export const PromptResponse$outboundSchema: z.ZodType<
131
147
  lastUpdated: "last_updated",
132
148
  lastUpdatedBy: "last_updated_by",
133
149
  agentCount: "agent_count",
150
+ toolsFull: "tools_full",
134
151
  });
135
152
  });
136
153
 
@@ -45,7 +45,7 @@ export type PromptUpdateRequest = {
45
45
  */
46
46
  editComments?: string | null | undefined;
47
47
  /**
48
- * Whether to include the default tools (`summary`, `hangup`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
48
+ * Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
49
49
  */
50
50
  includeDefaultTools?: boolean | undefined;
51
51
  };