import { Result, Schema } from "effect"; import * as Tool from "@effect-uai/core/Tool"; declare namespace AnthropicTools_d_exports { export { AnthropicToolConfig, ToolRenderError, UserLocation, WebSearchOptions, codeExecutionTool, renderProviderTools, webSearchTool }; } declare const UserLocation: Schema.Struct<{ readonly city: Schema.optional; readonly region: Schema.optional; readonly country: Schema.optional; readonly timezone: Schema.optional; }>; type UserLocation = typeof UserLocation.Type; /** Discriminated config for an Anthropic hosted tool. */ declare const AnthropicToolConfig: Schema.Union; readonly type: Schema.String; readonly maxUses: Schema.optional; readonly allowedDomains: Schema.optional>; readonly blockedDomains: Schema.optional>; readonly userLocation: Schema.optional; readonly region: Schema.optional; readonly country: Schema.optional; readonly timezone: Schema.optional; }>>; }>, Schema.Struct<{ readonly kind: Schema.Literal<"code_execution">; readonly type: Schema.String; }>]>; type AnthropicToolConfig = typeof AnthropicToolConfig.Type; type WebSearchOptions = { readonly maxUses?: number; readonly allowedDomains?: ReadonlyArray; readonly blockedDomains?: ReadonlyArray; readonly userLocation?: UserLocation; }; /** Anthropic-hosted web search. */ declare const webSearchTool: (opts?: WebSearchOptions) => Tool.ProviderTool<"web_search", Record, "anthropic", { readonly maxUses?: number; readonly allowedDomains?: ReadonlyArray; readonly blockedDomains?: ReadonlyArray; readonly userLocation?: UserLocation; readonly kind: "web_search"; readonly type: "web_search_20250305"; }>; /** Anthropic-hosted code execution (Python sandbox). */ declare const codeExecutionTool: Tool.ProviderTool<"code_execution", Record, "anthropic", { readonly kind: "code_execution"; readonly type: "code_execution_20250522"; }>; /** * A provider tool this adapter cannot render — a foreign `provider` or an * unrecognized `config`. Carried as data so `Anthropic.ts` can lift it into a * typed `AiError.Unsupported`. */ type ToolRenderError = { readonly capability: string; readonly reason: string; }; /** * Render a toolkit's Anthropic provider tools to native `tools` entries. Fails * with a `ToolRenderError` on the first foreign or unrecognized tool rather * than dropping it. */ declare const renderProviderTools: (tools: ReadonlyArray>) => Result.Result>, ToolRenderError>; //#endregion export { AnthropicToolConfig, ToolRenderError, UserLocation, WebSearchOptions, codeExecutionTool, renderProviderTools, AnthropicTools_d_exports as t, webSearchTool }; //# sourceMappingURL=AnthropicTools.d.mts.map