import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { FailableToolCallStatus } from "./failabletoolcallstatus.js"; /** * How the model saw the matches. `compact` means each tool by name, description, and input shape, plus a call example. Replaying the item renders the same result. */ export declare const OutputToolSearchServerToolItemFormat: { readonly Compact: "compact"; }; /** * How the model saw the matches. `compact` means each tool by name, description, and input shape, plus a call example. Replaying the item renders the same result. */ export type OutputToolSearchServerToolItemFormat = ClosedEnum; export type Match = { definition: { [k: string]: any; }; schemaDigest: string; toolId: string; }; export declare const OutputToolSearchServerToolItemType: { readonly OpenrouterToolSearch: "openrouter:tool_search"; }; export type OutputToolSearchServerToolItemType = ClosedEnum; /** * An openrouter:tool_search server tool output item */ export type OutputToolSearchServerToolItem = { /** * The JSON arguments of the model call, verbatim. Replaying the item reuses them. */ arguments?: string | undefined; /** * The ID of the model call that ran the search. Replaying the item reuses it. */ callId?: string | undefined; /** * What the announced index added and removed since the previous one, when the request opted into `announce_catalog_changes` and the catalog changed between model turns. Replaying the item shows the same lines. */ catalogChanges?: string | undefined; /** * The deferred-tool index the router showed the model with a pre-search, listing tool sources and names. Replaying the item shows the same index. */ catalogIndex?: string | undefined; /** * Whether the model read, after the catalog index, that the listed sources are those connected so far. Replaying the item shows that note only when this is true. Its wording follows the replaying request: it names `WaitForMcpServers` only while that request carries the tool. */ catalogIndexNote?: boolean | undefined; /** * The error message when the tool call failed before producing a result. Set together with `status: 'failed'`; absent on a successful call. */ error?: string | undefined; /** * How the model saw the matches. `compact` means each tool by name, description, and input shape, plus a call example. Replaying the item renders the same result. */ format?: OutputToolSearchServerToolItemFormat | undefined; /** * The guidance the model got when the search matched no tools. */ hint?: string | undefined; id?: string | undefined; matches?: Array | undefined; query?: string | undefined; /** * The other deferred tools of each source a match came from, by name, when the search listed siblings. Replaying the item shows the same names. */ sources?: { [k: string]: Array; } | undefined; status: FailableToolCallStatus; /** * The IDs of every tool call in the model response that ran the search, in order. Replaying the item keeps those calls in one turn. */ turnCallIds?: Array | undefined; type: OutputToolSearchServerToolItemType; }; /** @internal */ export declare const OutputToolSearchServerToolItemFormat$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputToolSearchServerToolItemFormat$outboundSchema: z.ZodEnum; /** @internal */ export declare const Match$inboundSchema: z.ZodType; /** @internal */ export type Match$Outbound = { definition: { [k: string]: any; }; schema_digest: string; tool_id: string; }; /** @internal */ export declare const Match$outboundSchema: z.ZodType; export declare function matchToJSON(match: Match): string; export declare function matchFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputToolSearchServerToolItemType$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputToolSearchServerToolItemType$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputToolSearchServerToolItem$inboundSchema: z.ZodType; /** @internal */ export type OutputToolSearchServerToolItem$Outbound = { arguments?: string | undefined; call_id?: string | undefined; catalog_changes?: string | undefined; catalog_index?: string | undefined; catalog_index_note?: boolean | undefined; error?: string | undefined; format?: string | undefined; hint?: string | undefined; id?: string | undefined; matches?: Array | undefined; query?: string | undefined; sources?: { [k: string]: Array; } | undefined; status: string; turn_call_ids?: Array | undefined; type: string; }; /** @internal */ export declare const OutputToolSearchServerToolItem$outboundSchema: z.ZodType; export declare function outputToolSearchServerToolItemToJSON(outputToolSearchServerToolItem: OutputToolSearchServerToolItem): string; export declare function outputToolSearchServerToolItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputtoolsearchservertoolitem.d.ts.map