Skip to content

[FEATURE] Support configurable recursion_limit for LangGraph agents #1279

@ratnopam

Description

@ratnopam

📋 Prerequisites

📝 Feature Summary

Add support for configurable recursion_limit for LangGraph agents

❓ Problem Statement / Motivation

When using KAgentApp with LangGraph, there's no way to configure recursion_limit (max agent steps). LangGraph defaults to 25 steps, which may be insufficient for complex multi-step tasks.

💡 Proposed Solution

Add mechanism to configure recursion_limit in one of the following ways

  • KAgentApp constructor: KAgentApp(graph, recursion_limit=50)
  • Agent CRD spec: spec.recursionLimit: 50
  • environment variable: LANGGRAPH_RECURSION_LIMIT

🔄 Alternatives Considered

No response

🎯 Affected Service(s)

None

📚 Additional Context

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue or PR has become stale

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions