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 { ToolCallStatus } from "./toolcallstatus.js"; export declare const OutputWebSearchServerToolItemTypeURL: { readonly Url: "url"; }; export type OutputWebSearchServerToolItemTypeURL = ClosedEnum; export type OutputWebSearchServerToolItemSource = { type: OutputWebSearchServerToolItemTypeURL; url: string; }; export declare const OutputWebSearchServerToolItemTypeSearch: { readonly Search: "search"; }; export type OutputWebSearchServerToolItemTypeSearch = ClosedEnum; /** * The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. */ export type OutputWebSearchServerToolItemAction = { query: string; sources?: Array | undefined; type: OutputWebSearchServerToolItemTypeSearch; }; export declare const OutputWebSearchServerToolItemTypeOpenrouterWebSearch: { readonly OpenrouterWebSearch: "openrouter:web_search"; }; export type OutputWebSearchServerToolItemTypeOpenrouterWebSearch = ClosedEnum; /** * An openrouter:web_search server tool output item */ export type OutputWebSearchServerToolItem = { /** * The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider. */ action?: OutputWebSearchServerToolItemAction | undefined; id?: string | undefined; status: ToolCallStatus; type: OutputWebSearchServerToolItemTypeOpenrouterWebSearch; }; /** @internal */ export declare const OutputWebSearchServerToolItemTypeURL$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchServerToolItemTypeURL$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchServerToolItemSource$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchServerToolItemSource$Outbound = { type: string; url: string; }; /** @internal */ export declare const OutputWebSearchServerToolItemSource$outboundSchema: z.ZodType; export declare function outputWebSearchServerToolItemSourceToJSON(outputWebSearchServerToolItemSource: OutputWebSearchServerToolItemSource): string; export declare function outputWebSearchServerToolItemSourceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputWebSearchServerToolItemTypeSearch$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchServerToolItemTypeSearch$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchServerToolItemAction$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchServerToolItemAction$Outbound = { query: string; sources?: Array | undefined; type: string; }; /** @internal */ export declare const OutputWebSearchServerToolItemAction$outboundSchema: z.ZodType; export declare function outputWebSearchServerToolItemActionToJSON(outputWebSearchServerToolItemAction: OutputWebSearchServerToolItemAction): string; export declare function outputWebSearchServerToolItemActionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputWebSearchServerToolItemTypeOpenrouterWebSearch$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchServerToolItemTypeOpenrouterWebSearch$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchServerToolItem$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchServerToolItem$Outbound = { action?: OutputWebSearchServerToolItemAction$Outbound | undefined; id?: string | undefined; status: string; type: string; }; /** @internal */ export declare const OutputWebSearchServerToolItem$outboundSchema: z.ZodType; export declare function outputWebSearchServerToolItemToJSON(outputWebSearchServerToolItem: OutputWebSearchServerToolItem): string; export declare function outputWebSearchServerToolItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputwebsearchservertoolitem.d.ts.map