[BUG] Issue where I can't chain subAgents higher than depth 2

Đang mở
#3,469 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes
Lĩnh vực
backend

Hướng nghiên cứu

The failure is in the Controller Service and shows the error text "consecutive Shared AgentTemplate tools exceed the kagent runtime boundary". Search the codebase for that message to find where the depth check happens, then reproduce the three-level chain (Orchestrator, Specialist, Memory) from the steps. Done means a subAgent chain deeper than two either works or fails with a documented limit. The maintainers have not yet said whether this is intended, so confirm that before writing a fix.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

📋 Prerequisites
  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue
🎯 Affected Service(s)

Controller Service

🚦 Impact/Severity

Blocker

🐛 Bug Description

I have a memory subAgent connected to MemGraph MCP server (KMCP)

When I use the chain:
Orchestrator -> Specialist -> Memory
I get a failure in the interface:
"consecutive Shared AgentTemplate tools exceed the kagent runtime boundary Conversations still use the last good revision."

🔄 Steps To Reproduce
  1. Create a subAgent with an MCP tool: Agent1
  2. Create a subAgent that uses Agent1 as a subAgent, call it Agent2
  3. Create an Agent that uses Agent2 as a subAgent.
🤔 Expected Behavior

If A2A communication works from agent to subAgent, I would expect it to work for subAgent to subAgent. It's unfortunately not clear in the interface that this is a limitation.

📱 Actual Behavior

subAgent to subAgent seems to break. Not sure if this is an arch limitation.

💻 Environment

Fedora 41
K3s v1.37.1
Kagent v1

🔧 CLI Bug Report

No response

🔍 Additional Context

No response

📋 Logs

📷 Screenshots

No response

🙋 Are you willing to contribute?
  • I am willing to submit a PR to fix this issue
Ngôn ngữ chính
Go
Star
4.5k
Fork
937
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
150

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kagent-dev/kagent

Tất cả issue của kagent-dev/kagent

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.