@ai-sdk/anthropic 2.0.16 → 2.0.17

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/dist/index.mjs CHANGED
@@ -73,7 +73,15 @@ var anthropicProviderOptions = z2.object({
73
73
  * Whether to disable parallel function calling during tool use. Default is false.
74
74
  * When set to true, Claude will use at most one tool per response.
75
75
  */
76
- disableParallelToolUse: z2.boolean().optional()
76
+ disableParallelToolUse: z2.boolean().optional(),
77
+ /**
78
+ * Cache control settings for this message.
79
+ * See https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
80
+ */
81
+ cacheControl: z2.object({
82
+ type: z2.literal("ephemeral"),
83
+ ttl: z2.union([z2.literal("5m"), z2.literal("1h")]).optional()
84
+ }).optional()
77
85
  });
78
86
 
79
87
  // src/anthropic-prepare-tools.ts