@takeshape/schema 12.1.7 → 12.2.1
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.
|
@@ -464,6 +464,10 @@ export type Seed1 = number;
|
|
|
464
464
|
* Maximal number of automatic roundtrips for tool calls.
|
|
465
465
|
*/
|
|
466
466
|
export type MaxToolRoundtrips = number;
|
|
467
|
+
/**
|
|
468
|
+
* Enable prompt caching for supported providers (e.g., Anthropic). Reduces token costs by caching system messages, tools, and conversation history.
|
|
469
|
+
*/
|
|
470
|
+
export type PromptCaching1 = boolean;
|
|
467
471
|
/**
|
|
468
472
|
* If true, structured outputs will be enabled on the model for non-text requests.
|
|
469
473
|
*/
|
|
@@ -2335,7 +2339,7 @@ export interface AgentGenerateOptions {
|
|
|
2335
2339
|
*/
|
|
2336
2340
|
toolChoice?: (('auto' | 'none' | 'required') | string) & string;
|
|
2337
2341
|
maxToolRoundtrips?: MaxToolRoundtrips;
|
|
2338
|
-
promptCaching?:
|
|
2342
|
+
promptCaching?: PromptCaching1;
|
|
2339
2343
|
structuredOutputs?: StructuredOutputs;
|
|
2340
2344
|
enableOpenAIFormat?: EnableOpenAISchemaFormat;
|
|
2341
2345
|
removePropertyKeyPatterns?: RemovePropertyKeyPatterns;
|
|
@@ -464,6 +464,10 @@ export type SeedV3_65_01 = number;
|
|
|
464
464
|
* Maximal number of automatic roundtrips for tool calls.
|
|
465
465
|
*/
|
|
466
466
|
export type MaxToolRoundtripsV3_65_0 = number;
|
|
467
|
+
/**
|
|
468
|
+
* Enable prompt caching for supported providers (e.g., Anthropic). Reduces token costs by caching system messages, tools, and conversation history.
|
|
469
|
+
*/
|
|
470
|
+
export type PromptCachingV3_65_01 = boolean;
|
|
467
471
|
/**
|
|
468
472
|
* If true, structured outputs will be enabled on the model for non-text requests.
|
|
469
473
|
*/
|
|
@@ -2335,7 +2339,7 @@ export interface AgentGenerateOptionsV3_65_0 {
|
|
|
2335
2339
|
*/
|
|
2336
2340
|
toolChoice?: (('auto' | 'none' | 'required') | string) & string;
|
|
2337
2341
|
maxToolRoundtrips?: MaxToolRoundtripsV3_65_0;
|
|
2338
|
-
promptCaching?:
|
|
2342
|
+
promptCaching?: PromptCachingV3_65_01;
|
|
2339
2343
|
structuredOutputs?: StructuredOutputsV3_65_0;
|
|
2340
2344
|
enableOpenAIFormat?: EnableOpenAISchemaFormatV3_65_0;
|
|
2341
2345
|
removePropertyKeyPatterns?: RemovePropertyKeyPatternsV3_65_0;
|
|
@@ -4190,7 +4190,10 @@
|
|
|
4190
4190
|
"description": "Maximal number of automatic roundtrips for tool calls."
|
|
4191
4191
|
},
|
|
4192
4192
|
"promptCaching": {
|
|
4193
|
-
"
|
|
4193
|
+
"type": "boolean",
|
|
4194
|
+
"default": false,
|
|
4195
|
+
"title": "Prompt Caching",
|
|
4196
|
+
"description": "Enable prompt caching for supported providers (e.g., Anthropic). Reduces token costs by caching system messages, tools, and conversation history."
|
|
4194
4197
|
},
|
|
4195
4198
|
"structuredOutputs": {
|
|
4196
4199
|
"type": "boolean",
|
|
@@ -4190,7 +4190,10 @@
|
|
|
4190
4190
|
"description": "Maximal number of automatic roundtrips for tool calls."
|
|
4191
4191
|
},
|
|
4192
4192
|
"promptCaching": {
|
|
4193
|
-
"
|
|
4193
|
+
"type": "boolean",
|
|
4194
|
+
"default": false,
|
|
4195
|
+
"title": "Prompt Caching",
|
|
4196
|
+
"description": "Enable prompt caching for supported providers (e.g., Anthropic). Reduces token costs by caching system messages, tools, and conversation history."
|
|
4194
4197
|
},
|
|
4195
4198
|
"structuredOutputs": {
|
|
4196
4199
|
"type": "boolean",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "12.1
|
|
3
|
+
"version": "12.2.1",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"p-reduce": "3.0.0",
|
|
58
58
|
"semver": "7.7.2",
|
|
59
59
|
"tiny-invariant": "1.3.3",
|
|
60
|
-
"@takeshape/errors": "12.1
|
|
61
|
-
"@takeshape/json-schema": "12.1
|
|
62
|
-
"@takeshape/util": "12.1
|
|
60
|
+
"@takeshape/errors": "12.2.1",
|
|
61
|
+
"@takeshape/json-schema": "12.2.1",
|
|
62
|
+
"@takeshape/util": "12.2.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@takeshape/json-schema-to-typescript": "11.0.0",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"glob": "11.0.1",
|
|
77
77
|
"json-schema-to-ts": "3.1.1",
|
|
78
78
|
"shortid": "2.2.16",
|
|
79
|
-
"@takeshape/logger": "12.1
|
|
80
|
-
"@takeshape/infra": "12.1
|
|
79
|
+
"@takeshape/logger": "12.2.1",
|
|
80
|
+
"@takeshape/infra": "12.2.1"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=24"
|