syllable-sdk 0.1.0-alpha.56 → 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 +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/promptllmprovider.d.ts +3 -0
- package/models/components/promptllmprovider.d.ts.map +1 -1
- package/models/components/promptllmprovider.js +1 -0
- package/models/components/promptllmprovider.js.map +1 -1
- package/models/components/promptresponse.d.ts +8 -0
- package/models/components/promptresponse.d.ts.map +1 -1
- package/models/components/promptresponse.js +5 -0
- package/models/components/promptresponse.js.map +1 -1
- package/openapi.json +19 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/promptllmprovider.ts +1 -0
- package/src/models/components/promptresponse.ts +17 -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.
|
|
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.
|
|
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.
|
|
34
|
+
sdkVersion: "0.1.0-alpha.58",
|
|
35
35
|
genVersion: "2.512.4",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
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
|
|
@@ -5,6 +5,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const PromptLlmProvider: {
|
|
7
7
|
readonly AzureOpenai: "azure_openai";
|
|
8
|
+
readonly Google: "google";
|
|
8
9
|
readonly Openai: "openai";
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
@@ -23,11 +24,13 @@ export declare namespace PromptLlmProvider$ {
|
|
|
23
24
|
/** @deprecated use `PromptLlmProvider$inboundSchema` instead. */
|
|
24
25
|
const inboundSchema: z.ZodNativeEnum<{
|
|
25
26
|
readonly AzureOpenai: "azure_openai";
|
|
27
|
+
readonly Google: "google";
|
|
26
28
|
readonly Openai: "openai";
|
|
27
29
|
}>;
|
|
28
30
|
/** @deprecated use `PromptLlmProvider$outboundSchema` instead. */
|
|
29
31
|
const outboundSchema: z.ZodNativeEnum<{
|
|
30
32
|
readonly AzureOpenai: "azure_openai";
|
|
33
|
+
readonly Google: "google";
|
|
31
34
|
readonly Openai: "openai";
|
|
32
35
|
}>;
|
|
33
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptllmprovider.d.ts","sourceRoot":"","sources":["../../src/models/components/promptllmprovider.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"promptllmprovider.d.ts","sourceRoot":"","sources":["../../src/models/components/promptllmprovider.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,iBAAiB,CACS,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,iBAAiB,CACS,CAAC;AAEpC;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa;;;;MAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc;;;;MAAmC,CAAC;CAChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptllmprovider.js","sourceRoot":"","sources":["../../src/models/components/promptllmprovider.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;AAEpC,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,uCAA+B,CAAC;AAEpC;;;GAGG;AACH,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AACjE,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC"}
|
|
1
|
+
{"version":3,"file":"promptllmprovider.js","sourceRoot":"","sources":["../../src/models/components/promptllmprovider.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;AAEpC,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,uCAA+B,CAAC;AAEpC;;;GAGG;AACH,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AACjE,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC"}
|
|
@@ -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/promptresponse.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,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"promptresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/promptresponse.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,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE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E,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;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"promptresponse.js","sourceRoot":"","sources":["../../src/models/components/promptresponse.ts"],"names":[],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AAC,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"}
|
package/openapi.json
CHANGED
|
@@ -12015,6 +12015,7 @@
|
|
|
12015
12015
|
"default": "azure_openai",
|
|
12016
12016
|
"examples": [
|
|
12017
12017
|
"azure_openai",
|
|
12018
|
+
"google",
|
|
12018
12019
|
"openai"
|
|
12019
12020
|
]
|
|
12020
12021
|
},
|
|
@@ -12065,6 +12066,7 @@
|
|
|
12065
12066
|
"type": "string",
|
|
12066
12067
|
"enum": [
|
|
12067
12068
|
"azure_openai",
|
|
12069
|
+
"google",
|
|
12068
12070
|
"openai"
|
|
12069
12071
|
],
|
|
12070
12072
|
"title": "PromptLlmProvider",
|
|
@@ -12129,7 +12131,8 @@
|
|
|
12129
12131
|
"type": "array",
|
|
12130
12132
|
"title": "Tools",
|
|
12131
12133
|
"description": "Names of the tools to which the prompt has access",
|
|
12132
|
-
"default": []
|
|
12134
|
+
"default": [],
|
|
12135
|
+
"deprecated": true
|
|
12133
12136
|
},
|
|
12134
12137
|
"llm_config": {
|
|
12135
12138
|
"$ref": "#/components/schemas/PromptLlmConfig",
|
|
@@ -12190,6 +12193,21 @@
|
|
|
12190
12193
|
],
|
|
12191
12194
|
"title": "Agent Count",
|
|
12192
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"
|
|
12193
12211
|
}
|
|
12194
12212
|
},
|
|
12195
12213
|
"type": "object",
|
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.
|
|
60
|
+
sdkVersion: "0.1.0-alpha.58",
|
|
61
61
|
genVersion: "2.512.4",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.58 2.512.4 0.0.2 syllable-sdk",
|
|
64
64
|
} as const;
|
|
@@ -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
|
|