/** * Managed recursion-limit helpers. * * `@langchain/core` defaults to 25. `createDeepAgent` / `withConfig` can raise * that on the compiled graph, but `@langchain/langgraph-api` invokes via * `streamEvents` with `recursionLimit: kwargs.config?.recursion_limit`, which is * `undefined` when the run/assistant omit it. Pregel then does: * * `{ recursionLimit: this.config?.recursionLimit, ...options }` * * so the explicit `undefined` overwrites the withConfig default and * `ensureLangGraphConfig` falls back to 25. LangGraph API also unwraps * ReactAgent to `.graph`, so the default must live on that inner Pregel. */ /** Default LangGraph step budget for managed agents. */ export declare const MANAGED_RECURSION_LIMIT = 200; /** * Ensure omitted / `undefined` `recursionLimit` keeps `limit` when the API * invokes the (possibly unwrapped) compiled graph. */ export declare function applyManagedRecursionLimit(agent: T, limit: number): T; //# sourceMappingURL=recursion-limit.d.ts.map