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"; export declare const OutputFunctionCallItemStatusInProgress: { readonly InProgress: "in_progress"; }; export type OutputFunctionCallItemStatusInProgress = ClosedEnum; export declare const OutputFunctionCallItemStatusIncomplete: { readonly Incomplete: "incomplete"; }; export type OutputFunctionCallItemStatusIncomplete = ClosedEnum; export declare const OutputFunctionCallItemStatusCompleted: { readonly Completed: "completed"; }; export type OutputFunctionCallItemStatusCompleted = ClosedEnum; export type OutputFunctionCallItemStatusUnion = OutputFunctionCallItemStatusCompleted | OutputFunctionCallItemStatusIncomplete | OutputFunctionCallItemStatusInProgress; export type OutputFunctionCallItemSubagentItem = { type: string; additionalProperties?: { [k: string]: any; } | undefined; }; export type OutputFunctionCallItem = { arguments: string; /** * True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`. */ async?: boolean | undefined; callId: string; id?: string | undefined; name: string; /** * Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) */ namespace?: string | undefined; status?: OutputFunctionCallItemStatusCompleted | OutputFunctionCallItemStatusIncomplete | OutputFunctionCallItemStatusInProgress | undefined; type: "function_call"; /** * EXPERIMENTAL — subject to change without notice. String id that matches the `call_id` of the `openrouter:subagent` server tool call that spawned the subagent. Present on every `function_call` item the subagent projects; absent on ordinary function calls. */ subagentId?: string | undefined; /** * EXPERIMENTAL — subject to change without notice. The subagent's output items produced on this turn. Treat this as an opaque object; you must replay it in the request so that the subagent can continue execution of the tool with the same context. If a subagent created multiple parallel tool calls, only the first tool call will have this field. The other tool calls will only have `subagent_id`. Present only if the tool call originates from a subagent spawned by the `openrouter:subagent` server tool. */ subagentItems?: Array | undefined; }; /** @internal */ export declare const OutputFunctionCallItemStatusInProgress$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputFunctionCallItemStatusIncomplete$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputFunctionCallItemStatusCompleted$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputFunctionCallItemStatusUnion$inboundSchema: z.ZodType; export declare function outputFunctionCallItemStatusUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputFunctionCallItemSubagentItem$inboundSchema: z.ZodType; export declare function outputFunctionCallItemSubagentItemFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputFunctionCallItem$inboundSchema: z.ZodType; export declare function outputFunctionCallItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputfunctioncallitem.d.ts.map