import { Agent } from '../agent'; import { Handoff } from '../handoff'; import { RunItem } from '../items'; import { ModelResponse } from '../model'; import { RunState } from '../runState'; import type { AgentInputItem } from '../types'; import { Tool } from '../tool'; import type { ProcessedResponse } from './types'; import type { ToolNotFoundBehavior } from '../run'; type ModelResponseProcessingOptions = { toolSearchAgentName?: string; completedInvocations?: ReadonlyMap; allowPromptSuppliedTools?: boolean; beforeClientToolSearch?: () => void; }; /** * Walks a raw model response and classifies each item so the runner can schedule follow-up work. * Returns both the serializable RunItems (for history/streaming) and the actionable tool metadata. */ export declare function processModelResponse(modelResponse: ModelResponse, agent: Agent, tools: Tool[], handoffs: Handoff[], priorItems?: Array, toolNotFoundBehavior?: ToolNotFoundBehavior, processingOptions?: ModelResponseProcessingOptions): ProcessedResponse; export declare function processModelResponseAsync(modelResponse: ModelResponse, agent: Agent, tools: Tool[], handoffs: Handoff[], state: RunState>, priorItems?: Array, toolNotFoundBehavior?: ToolNotFoundBehavior, processingOptions?: ModelResponseProcessingOptions): Promise>; export {};