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 { ServerToolNativeModel } from "./servertoolnativemodel.js"; /** * Endpoints whose provider runs this tool itself during inference. Zero for tools no provider runs natively. */ export type NativeSupport = { endpointCount: number; modelCount: number; models: Array; }; export declare const ServerToolDetailsStatus: { readonly Active: "active"; readonly Deprecated: "deprecated"; }; export type ServerToolDetailsStatus = OpenEnum; export declare const ServerToolDetailsSupportedApiFormat: { readonly Responses: "responses"; readonly ChatCompletions: "chat-completions"; readonly AnthropicMessages: "anthropic-messages"; }; export type ServerToolDetailsSupportedApiFormat = OpenEnum; export type ServerToolDetails = { /** * 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: NativeSupport; /** * 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: ServerToolDetailsStatus; /** * 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 NativeSupport$inboundSchema: z.ZodType; export declare function nativeSupportFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ServerToolDetailsStatus$inboundSchema: z.ZodType; /** @internal */ export declare const ServerToolDetailsSupportedApiFormat$inboundSchema: z.ZodType; /** @internal */ export declare const ServerToolDetails$inboundSchema: z.ZodType; export declare function serverToolDetailsFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=servertooldetails.d.ts.map