/** * Agent — pure configuration. Holds no run/session state. * Handoffs are exposed to the model as virtual transfer_to_* tools by the Runner. */ import { z } from "zod"; import type { GuardrailSet, ModelProvider, ToolDefinition } from "../types"; export interface AgentConfig> { name: string; instructions: string; model: ModelProvider; tools?: ToolDefinition[]; outputSchema?: z.ZodType; guardrails?: GuardrailSet; handoffs?: Agent[]; } /** Pure configuration — holds no run state. */ export declare class Agent> { readonly name: string; readonly instructions: string; readonly model: ModelProvider; readonly tools: ToolDefinition[]; readonly outputSchema?: z.ZodType; readonly guardrails?: GuardrailSet; readonly handoffs: Agent[]; constructor(config: AgentConfig); findHandoffTarget(name: string): Agent | undefined; /** Depth-first search of this agent + handoff graph by name. */ findAgentInGraph(name: string): Agent | undefined; } export declare function handoffToolName(agentName: string): string; export declare function isHandoffToolName(name: string): boolean; //# sourceMappingURL=agent.d.ts.map