/** * Structured-adaptive agent loop for Catui — compatibility shim. * The weak-model-compatible loop has converged into the standard loop * (core/lib/agent-core/src/agent-loop.ts). These exports remain as thin * wrappers so external importers keep working unchanged; `weak-model-compatible` * is now a capability alias of the standard loop, not a separate implementation. * [WHO]: structuredAdaptiveAgentLoop, structuredAdaptiveAgentLoopContinue * [FROM]: @catui/ai * [TO]: Consumed by core/lib/agent-core/src/index.ts * [HERE]: core/lib/agent-core/src/structured-adaptive-agent-loop.ts - owned by core/lib/agent-core/AGENT.md */ import type { AgentContext, AgentEvent, AgentLoopConfig, AgentMessage, StreamFn } from "./types.js"; import { EventStream } from "@catui/ai/events"; /** * Weak-model-compatible loop — alias of the unified standard loop. * * @deprecated Use `agentLoop` directly. This export exists only for public API * compatibility and behaves identically. */ export declare function structuredAdaptiveAgentLoop(prompts: AgentMessage[], context: AgentContext, config: AgentLoopConfig, signal?: AbortSignal, streamFn?: StreamFn): EventStream; /** * Weak-model-compatible continuation — alias of the unified standard loop. * * @deprecated Use `agentLoopContinue` directly. This export exists only for * public API compatibility and behaves identically (including the same * ValidationError guards for empty contexts and trailing assistant messages). */ export declare function structuredAdaptiveAgentLoopContinue(context: AgentContext, config: AgentLoopConfig, signal?: AbortSignal, streamFn?: StreamFn): EventStream;