import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { AnthropicAllowedCallers } from "./anthropicallowedcallers.js"; import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound } from "./anthropiccachecontroldirective.js"; import { AnthropicWebSearchToolUserLocation, AnthropicWebSearchToolUserLocation$Outbound } from "./anthropicwebsearchtooluserlocation.js"; export declare const AnthropicToolUnionNameWebSearch2: { readonly WebSearch: "web_search"; }; export type AnthropicToolUnionNameWebSearch2 = ClosedEnum; export declare const AnthropicToolUnionTypeWebSearch20260209: { readonly WebSearch20260209: "web_search_20260209"; }; export type AnthropicToolUnionTypeWebSearch20260209 = ClosedEnum; export type AnthropicToolUnionWebSearch20260209 = { allowedCallers?: Array | undefined; allowedDomains?: Array | null | undefined; blockedDomains?: Array | null | undefined; /** * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. */ cacheControl?: AnthropicCacheControlDirective | undefined; maxUses?: number | null | undefined; name: AnthropicToolUnionNameWebSearch2; type: AnthropicToolUnionTypeWebSearch20260209; userLocation?: AnthropicWebSearchToolUserLocation | null | undefined; }; export declare const AnthropicToolUnionNameWebSearch1: { readonly WebSearch: "web_search"; }; export type AnthropicToolUnionNameWebSearch1 = ClosedEnum; export declare const AnthropicToolUnionTypeWebSearch20250305: { readonly WebSearch20250305: "web_search_20250305"; }; export type AnthropicToolUnionTypeWebSearch20250305 = ClosedEnum; export type AnthropicToolUnionWebSearch20250305 = { allowedDomains?: Array | null | undefined; blockedDomains?: Array | null | undefined; /** * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. */ cacheControl?: AnthropicCacheControlDirective | undefined; maxUses?: number | null | undefined; name: AnthropicToolUnionNameWebSearch1; type: AnthropicToolUnionTypeWebSearch20250305; userLocation?: AnthropicWebSearchToolUserLocation | null | undefined; }; export declare const AnthropicToolUnionNameStrReplaceEditor: { readonly StrReplaceEditor: "str_replace_editor"; }; export type AnthropicToolUnionNameStrReplaceEditor = ClosedEnum; export declare const AnthropicToolUnionTypeTextEditor20250124: { readonly TextEditor20250124: "text_editor_20250124"; }; export type AnthropicToolUnionTypeTextEditor20250124 = ClosedEnum; export type AnthropicToolUnionTextEditor20250124 = { /** * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. */ cacheControl?: AnthropicCacheControlDirective | undefined; name: AnthropicToolUnionNameStrReplaceEditor; type: AnthropicToolUnionTypeTextEditor20250124; }; export declare const AnthropicToolUnionNameBash: { readonly Bash: "bash"; }; export type AnthropicToolUnionNameBash = ClosedEnum; export declare const AnthropicToolUnionTypeBash20250124: { readonly Bash20250124: "bash_20250124"; }; export type AnthropicToolUnionTypeBash20250124 = ClosedEnum; export type AnthropicToolUnionBash20250124 = { /** * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. */ cacheControl?: AnthropicCacheControlDirective | undefined; name: AnthropicToolUnionNameBash; type: AnthropicToolUnionTypeBash20250124; }; export declare const TypeObject: { readonly Object: "object"; }; export type TypeObject = ClosedEnum; export type AnthropicToolUnionInputSchema = { properties?: any | undefined; required?: Array | null | undefined; type: TypeObject; additionalProperties?: { [k: string]: any; } | undefined; }; export declare const AnthropicToolUnionTypeCustom: { readonly Custom: "custom"; }; export type AnthropicToolUnionTypeCustom = ClosedEnum; export type AnthropicToolUnionCustom = { /** * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format. */ cacheControl?: AnthropicCacheControlDirective | undefined; deferLoading?: boolean | undefined; description?: string | undefined; inputSchema: AnthropicToolUnionInputSchema; name: string; strict?: boolean | undefined; type?: AnthropicToolUnionTypeCustom | undefined; }; /** * An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search). */ export type AnthropicToolUnion = AnthropicToolUnionCustom | AnthropicToolUnionBash20250124 | AnthropicToolUnionTextEditor20250124 | AnthropicToolUnionWebSearch20250305 | AnthropicToolUnionWebSearch20260209; /** @internal */ export declare const AnthropicToolUnionNameWebSearch2$outboundSchema: z.ZodEnum; /** @internal */ export declare const AnthropicToolUnionTypeWebSearch20260209$outboundSchema: z.ZodEnum; /** @internal */ export type AnthropicToolUnionWebSearch20260209$Outbound = { allowed_callers?: Array | undefined; allowed_domains?: Array | null | undefined; blocked_domains?: Array | null | undefined; cache_control?: AnthropicCacheControlDirective$Outbound | undefined; max_uses?: number | null | undefined; name: string; type: string; user_location?: AnthropicWebSearchToolUserLocation$Outbound | null | undefined; }; /** @internal */ export declare const AnthropicToolUnionWebSearch20260209$outboundSchema: z.ZodType; export declare function anthropicToolUnionWebSearch20260209ToJSON(anthropicToolUnionWebSearch20260209: AnthropicToolUnionWebSearch20260209): string; /** @internal */ export declare const AnthropicToolUnionNameWebSearch1$outboundSchema: z.ZodEnum; /** @internal */ export declare const AnthropicToolUnionTypeWebSearch20250305$outboundSchema: z.ZodEnum; /** @internal */ export type AnthropicToolUnionWebSearch20250305$Outbound = { allowed_domains?: Array | null | undefined; blocked_domains?: Array | null | undefined; cache_control?: AnthropicCacheControlDirective$Outbound | undefined; max_uses?: number | null | undefined; name: string; type: string; user_location?: AnthropicWebSearchToolUserLocation$Outbound | null | undefined; }; /** @internal */ export declare const AnthropicToolUnionWebSearch20250305$outboundSchema: z.ZodType; export declare function anthropicToolUnionWebSearch20250305ToJSON(anthropicToolUnionWebSearch20250305: AnthropicToolUnionWebSearch20250305): string; /** @internal */ export declare const AnthropicToolUnionNameStrReplaceEditor$outboundSchema: z.ZodEnum; /** @internal */ export declare const AnthropicToolUnionTypeTextEditor20250124$outboundSchema: z.ZodEnum; /** @internal */ export type AnthropicToolUnionTextEditor20250124$Outbound = { cache_control?: AnthropicCacheControlDirective$Outbound | undefined; name: string; type: string; }; /** @internal */ export declare const AnthropicToolUnionTextEditor20250124$outboundSchema: z.ZodType; export declare function anthropicToolUnionTextEditor20250124ToJSON(anthropicToolUnionTextEditor20250124: AnthropicToolUnionTextEditor20250124): string; /** @internal */ export declare const AnthropicToolUnionNameBash$outboundSchema: z.ZodEnum; /** @internal */ export declare const AnthropicToolUnionTypeBash20250124$outboundSchema: z.ZodEnum; /** @internal */ export type AnthropicToolUnionBash20250124$Outbound = { cache_control?: AnthropicCacheControlDirective$Outbound | undefined; name: string; type: string; }; /** @internal */ export declare const AnthropicToolUnionBash20250124$outboundSchema: z.ZodType; export declare function anthropicToolUnionBash20250124ToJSON(anthropicToolUnionBash20250124: AnthropicToolUnionBash20250124): string; /** @internal */ export declare const TypeObject$outboundSchema: z.ZodEnum; /** @internal */ export type AnthropicToolUnionInputSchema$Outbound = { properties?: any | undefined; required?: Array | null | undefined; type: string; [additionalProperties: string]: unknown; }; /** @internal */ export declare const AnthropicToolUnionInputSchema$outboundSchema: z.ZodType; export declare function anthropicToolUnionInputSchemaToJSON(anthropicToolUnionInputSchema: AnthropicToolUnionInputSchema): string; /** @internal */ export declare const AnthropicToolUnionTypeCustom$outboundSchema: z.ZodEnum; /** @internal */ export type AnthropicToolUnionCustom$Outbound = { cache_control?: AnthropicCacheControlDirective$Outbound | undefined; defer_loading?: boolean | undefined; description?: string | undefined; input_schema: AnthropicToolUnionInputSchema$Outbound; name: string; strict?: boolean | undefined; type?: string | undefined; }; /** @internal */ export declare const AnthropicToolUnionCustom$outboundSchema: z.ZodType; export declare function anthropicToolUnionCustomToJSON(anthropicToolUnionCustom: AnthropicToolUnionCustom): string; /** @internal */ export type AnthropicToolUnion$Outbound = AnthropicToolUnionCustom$Outbound | AnthropicToolUnionBash20250124$Outbound | AnthropicToolUnionTextEditor20250124$Outbound | AnthropicToolUnionWebSearch20250305$Outbound | AnthropicToolUnionWebSearch20260209$Outbound; /** @internal */ export declare const AnthropicToolUnion$outboundSchema: z.ZodType; export declare function anthropicToolUnionToJSON(anthropicToolUnion: AnthropicToolUnion): string; //# sourceMappingURL=anthropictoolunion.d.ts.map