import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { ServerToolEngine } from "./servertoolengine.js"; import { ServerToolInputName } from "./servertoolinputname.js"; import { ServerToolNativeSupport } from "./servertoolnativesupport.js"; export declare const ServerToolStatus: { readonly Active: "active"; readonly Deprecated: "deprecated"; }; export type ServerToolStatus = OpenEnum; export declare const ServerToolSupportedApiFormat: { readonly Responses: "responses"; readonly ChatCompletions: "chat-completions"; readonly AnthropicMessages: "anthropic-messages"; }; export type ServerToolSupportedApiFormat = OpenEnum; export type ServerTool = { /** * Every spelling accepted in `tools[].type` for this tool, including the canonical `id`, and what the call surfaces as under each */ aliases: Array; /** * The engine a request without `parameters.engine` (or with `engine: "auto"`) runs on; `native` applies where the endpoint runs the tool itself, otherwise `fallback_engine`. A request pinned to a data region skips either engine when its `data_regions` does not list that region. Null for a tool without an engine parameter */ defaultEngine: string | null; docsUrl: string; engines: Array; /** * The engine an unpinned request runs on when `default_engine` is `native` and the endpoint does not run the tool itself; null when there is no fallback */ fallbackEngine: string | null; /** * Canonical `openrouter:*` name; the stable `tools[].type` on every API format in `supported_api_formats` */ id: string; /** * JSON Schema of the arguments the model emits when calling the tool */ inputSchema: { [k: string]: any; }; name: string; /** * Endpoints whose provider runs this tool itself during inference. Zero for tools no provider runs natively. */ nativeSupport: ServerToolNativeSupport; /** * JSON Schema of the result returned to the model; null when undeclared */ outputSchema: { [k: string]: any; } | null; /** * JSON Schema for the caller-side `tools[].parameters` object */ parametersSchema: { [k: string]: any; }; status: ServerToolStatus; /** * One sentence for cards and search results; never sent to a model */ summary: string; supportedApiFormats: Array; /** * The description sent upstream as the function tool description */ toolDescription: string; }; /** @internal */ export declare const ServerToolStatus$inboundSchema: z.ZodType; /** @internal */ export declare const ServerToolSupportedApiFormat$inboundSchema: z.ZodType; /** @internal */ export declare const ServerTool$inboundSchema: z.ZodType; export declare function serverToolFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=servertool.d.ts.map