@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
11 lines (10 loc) • 597 B
TypeScript
import { Agent } from '../agent';
import { Handoff } from '../handoff';
import { ModelResponse } from '../model';
import { Tool } from '../tool';
import type { ProcessedResponse } from './types';
/**
* 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<TContext>(modelResponse: ModelResponse, agent: Agent<any, any>, tools: Tool<TContext>[], handoffs: Handoff<any, any>[]): ProcessedResponse<TContext>;