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 { 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 AdditionalToolsItemRole: { readonly Unknown: "unknown"; readonly User: "user"; readonly Assistant: "assistant"; readonly System: "system"; readonly Critic: "critic"; readonly Discriminator: "discriminator"; readonly Developer: "developer"; readonly Tool: "tool"; }; export type AdditionalToolsItemRole = OpenEnum; export type AdditionalToolsItemTool = { type: string; additionalProperties?: { [k: string]: any; } | undefined; }; export declare const AdditionalToolsItemTypeFunction: { readonly Function: "function"; }; export type AdditionalToolsItemTypeFunction = ClosedEnum; /** * Function tool definition */ export type AdditionalToolsItemToolFunction = { description?: string | null | undefined; name: string; parameters: { [k: string]: any; } | null; strict?: boolean | null | undefined; type: AdditionalToolsItemTypeFunction; /** * 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. Requires the tool search server tool; at least one tool must remain non-deferred. */ deferLoading?: boolean | undefined; }; export type AdditionalToolsItemToolUnion = ComputerUseServerTool | NamespaceTool | AdditionalToolsItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | AdditionalToolsItemTool; export declare const TypeAdditionalTools: { readonly AdditionalTools: "additional_tools"; }; export type TypeAdditionalTools = ClosedEnum; /** * Additional tools made available to the model at this point in the input */ export type AdditionalToolsItem = { id?: string | null | undefined; role: AdditionalToolsItemRole; tools: Array; type: TypeAdditionalTools; }; /** @internal */ export declare const AdditionalToolsItemRole$outboundSchema: z.ZodType; /** @internal */ export type AdditionalToolsItemTool$Outbound = { type: string; [additionalProperties: string]: unknown; }; /** @internal */ export declare const AdditionalToolsItemTool$outboundSchema: z.ZodType; export declare function additionalToolsItemToolToJSON(additionalToolsItemTool: AdditionalToolsItemTool): string; /** @internal */ export declare const AdditionalToolsItemTypeFunction$outboundSchema: z.ZodEnum; /** @internal */ export type AdditionalToolsItemToolFunction$Outbound = { description?: string | null | undefined; name: string; parameters: { [k: string]: any; } | null; strict?: boolean | null | undefined; type: string; async?: boolean | undefined; defer_loading?: boolean | undefined; }; /** @internal */ export declare const AdditionalToolsItemToolFunction$outboundSchema: z.ZodType; export declare function additionalToolsItemToolFunctionToJSON(additionalToolsItemToolFunction: AdditionalToolsItemToolFunction): string; /** @internal */ export type AdditionalToolsItemToolUnion$Outbound = ComputerUseServerTool$Outbound | NamespaceTool$Outbound | AdditionalToolsItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$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 | AdditionalToolsItemTool$Outbound; /** @internal */ export declare const AdditionalToolsItemToolUnion$outboundSchema: z.ZodType; export declare function additionalToolsItemToolUnionToJSON(additionalToolsItemToolUnion: AdditionalToolsItemToolUnion): string; /** @internal */ export declare const TypeAdditionalTools$outboundSchema: z.ZodEnum; /** @internal */ export type AdditionalToolsItem$Outbound = { id?: string | null | undefined; role: string; tools: Array; type: string; }; /** @internal */ export declare const AdditionalToolsItem$outboundSchema: z.ZodType; export declare function additionalToolsItemToJSON(additionalToolsItem: AdditionalToolsItem): string; //# sourceMappingURL=additionaltoolsitem.d.ts.map