import * as z from "zod/v4"; import { ClosedEnum, OpenEnum } from "../types/enums.js"; import { AdvisorServerToolOpenRouter, AdvisorServerToolOpenRouter$Outbound } from "./advisorservertoolopenrouter.js"; import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatchservertool.js"; import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js"; import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js"; import { CodeInterpreterServerTool, CodeInterpreterServerTool$Outbound } from "./codeinterpreterservertool.js"; import { CodexLocalShellTool, CodexLocalShellTool$Outbound } from "./codexlocalshelltool.js"; import { ComputerUseServerTool, ComputerUseServerTool$Outbound } from "./computeruseservertool.js"; import { CustomTool, CustomTool$Outbound } from "./customtool.js"; import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js"; import { FileSearchServerTool, FileSearchServerTool$Outbound } from "./filesearchservertool.js"; import { FilesServerTool, FilesServerTool$Outbound } from "./filesservertool.js"; import { FusionServerToolOpenRouter, FusionServerToolOpenRouter$Outbound } from "./fusionservertoolopenrouter.js"; import { ImageGenerationServerTool, ImageGenerationServerTool$Outbound } from "./imagegenerationservertool.js"; import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js"; import { LegacyWebSearchServerTool, LegacyWebSearchServerTool$Outbound } from "./legacywebsearchservertool.js"; import { McpServerTool, McpServerTool$Outbound } from "./mcpservertool.js"; import { McpServerToolOpenRouter, McpServerToolOpenRouter$Outbound } from "./mcpservertoolopenrouter.js"; import { NamespaceTool, NamespaceTool$Outbound } from "./namespacetool.js"; import { Preview20250311WebSearchServerTool, Preview20250311WebSearchServerTool$Outbound } from "./preview20250311websearchservertool.js"; import { PreviewWebSearchServerTool, PreviewWebSearchServerTool$Outbound } from "./previewwebsearchservertool.js"; import { SearchModelsServerToolOpenRouter, SearchModelsServerToolOpenRouter$Outbound } from "./searchmodelsservertoolopenrouter.js"; import { ShellServerTool, ShellServerTool$Outbound } from "./shellservertool.js"; import { ShellServerToolOpenRouter, ShellServerToolOpenRouter$Outbound } from "./shellservertoolopenrouter.js"; import { SubagentServerToolOpenRouter, SubagentServerToolOpenRouter$Outbound } from "./subagentservertoolopenrouter.js"; import { ToolSearchServerTool, ToolSearchServerTool$Outbound } from "./toolsearchservertool.js"; import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchservertool.js"; import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js"; import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js"; export declare const ToolSearchOutputItemExecution: { readonly Server: "server"; readonly Client: "client"; }; export type ToolSearchOutputItemExecution = OpenEnum; export declare const ToolSearchOutputItemStatus: { readonly InProgress: "in_progress"; readonly Completed: "completed"; readonly Incomplete: "incomplete"; }; export type ToolSearchOutputItemStatus = OpenEnum; export type ToolSearchOutputItemTool = { type: string; additionalProperties?: { [k: string]: any; } | undefined; }; export declare const ToolSearchOutputItemTypeFunction: { readonly Function: "function"; }; export type ToolSearchOutputItemTypeFunction = ClosedEnum; export declare const ToolSearchOutputItemAllowedCaller: { readonly Direct: "direct"; readonly Programmatic: "programmatic"; }; export type ToolSearchOutputItemAllowedCaller = OpenEnum; /** * Function tool definition */ export type ToolSearchOutputItemToolFunction = { description?: string | null | undefined; name: string; parameters: { [k: string]: any; } | null; strict?: boolean | null | undefined; type: ToolSearchOutputItemTypeFunction; allowedCallers?: Array | null | undefined; /** * Lets the model keep working after calling this tool instead of waiting for its output. The tool is still executed by the client; return the result in a later request as a `function_call_output` with the original `call_id`. Only honored by providers whose Responses API supports async tools; ignored elsewhere. */ async?: boolean | undefined; /** * Withhold this tool from the model until `openrouter:tool_search` finds it. Where the request declares no search tool, OpenRouter may add `openrouter:tool_search` to serve the flag, and otherwise sends the tool in full. A request that declares the search tool itself must keep at least one tool non-deferred. */ deferLoading?: boolean | undefined; outputSchema?: { [k: string]: any; } | null | undefined; }; export type ToolSearchOutputItemToolUnion = ComputerUseServerTool | NamespaceTool | ToolSearchOutputItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | McpServerToolOpenRouter | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | ToolSearchOutputItemTool; export declare const TypeToolSearchOutput: { readonly ToolSearchOutput: "tool_search_output"; }; export type TypeToolSearchOutput = ClosedEnum; /** * The tools a client-executed tool search loaded */ export type ToolSearchOutputItem = { callId: string; execution: ToolSearchOutputItemExecution; id?: string | null | undefined; status?: ToolSearchOutputItemStatus | null | undefined; tools: Array; type: TypeToolSearchOutput; }; /** @internal */ export declare const ToolSearchOutputItemExecution$outboundSchema: z.ZodType; /** @internal */ export declare const ToolSearchOutputItemStatus$outboundSchema: z.ZodType; /** @internal */ export type ToolSearchOutputItemTool$Outbound = { type: string; [additionalProperties: string]: unknown; }; /** @internal */ export declare const ToolSearchOutputItemTool$outboundSchema: z.ZodType; export declare function toolSearchOutputItemToolToJSON(toolSearchOutputItemTool: ToolSearchOutputItemTool): string; /** @internal */ export declare const ToolSearchOutputItemTypeFunction$outboundSchema: z.ZodEnum; /** @internal */ export declare const ToolSearchOutputItemAllowedCaller$outboundSchema: z.ZodType; /** @internal */ export type ToolSearchOutputItemToolFunction$Outbound = { description?: string | null | undefined; name: string; parameters: { [k: string]: any; } | null; strict?: boolean | null | undefined; type: string; allowed_callers?: Array | null | undefined; async?: boolean | undefined; defer_loading?: boolean | undefined; output_schema?: { [k: string]: any; } | null | undefined; }; /** @internal */ export declare const ToolSearchOutputItemToolFunction$outboundSchema: z.ZodType; export declare function toolSearchOutputItemToolFunctionToJSON(toolSearchOutputItemToolFunction: ToolSearchOutputItemToolFunction): string; /** @internal */ export type ToolSearchOutputItemToolUnion$Outbound = ComputerUseServerTool$Outbound | NamespaceTool$Outbound | ToolSearchOutputItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | McpServerToolOpenRouter$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | ToolSearchOutputItemTool$Outbound; /** @internal */ export declare const ToolSearchOutputItemToolUnion$outboundSchema: z.ZodType; export declare function toolSearchOutputItemToolUnionToJSON(toolSearchOutputItemToolUnion: ToolSearchOutputItemToolUnion): string; /** @internal */ export declare const TypeToolSearchOutput$outboundSchema: z.ZodEnum; /** @internal */ export type ToolSearchOutputItem$Outbound = { call_id: string; execution: string; id?: string | null | undefined; status?: string | null | undefined; tools: Array; type: string; }; /** @internal */ export declare const ToolSearchOutputItem$outboundSchema: z.ZodType; export declare function toolSearchOutputItemToJSON(toolSearchOutputItem: ToolSearchOutputItem): string; //# sourceMappingURL=toolsearchoutputitem.d.ts.map