@fairyhunter13/ai-anthropic 3.0.58-fork.2 → 3.0.58-fork.21

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.
@@ -20,6 +20,15 @@ export const webSearch_20260209ArgsSchema = lazySchema(() =>
20
20
  timezone: z.string().optional(),
21
21
  })
22
22
  .optional(),
23
+ allowedCallers: z
24
+ .array(
25
+ z.enum([
26
+ 'direct',
27
+ 'code_execution_20250825',
28
+ 'code_execution_20260120',
29
+ ]),
30
+ )
31
+ .optional(),
23
32
  }),
24
33
  ),
25
34
  );
@@ -121,6 +130,14 @@ const factory = createProviderToolFactoryWithOutputSchema<
121
130
  */
122
131
  timezone?: string;
123
132
  };
133
+
134
+ /**
135
+ * Restrict which callers can invoke web_search.
136
+ * Set to ["direct"] to prevent code_execution from calling web_search programmatically.
137
+ */
138
+ allowedCallers?: Array<
139
+ 'direct' | 'code_execution_20250825' | 'code_execution_20260120'
140
+ >;
124
141
  }
125
142
  >({
126
143
  id: 'anthropic.web_search_20260209',