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

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions