eino icon indicating copy to clipboard operation
eino copied to clipboard

feat(adk): add agent teams middleware with mailbox-based multi-agent coordination

Open fanlv opened this issue 8 months ago • 1 comments

Summary

  • Add team middleware package implementing mailbox-based multi-agent coordination for ADK
  • Includes file-backed mailbox, message pump, source router, lifecycle management, teammate registry, and team runner
  • Provides tools for team creation/deletion, sending messages, and agent spawning
  • Enhances plantask middleware with task API, task reminder, and improved task management

Test plan

  • [x] Unit tests added for all new team middleware components
  • [x] Unit tests updated for plantask middleware changes

fanlv avatar Mar 26 '26 12:03 fanlv

Codecov Report

:x: Patch coverage is 86.60983% with 267 lines in your changes missing coverage. Please review. :warning: Please upload report for BASE (alpha/09@e5e2b18). Learn more about missing BASE report.

Files with missing lines Patch % Lines
adk/middlewares/plantask/task_update.go 79.76% 17 Missing and 17 partials :warning:
adk/middlewares/team/team_runner.go 75.00% 21 Missing and 8 partials :warning:
adk/middlewares/team/message_source.go 76.92% 16 Missing and 11 partials :warning:
adk/middlewares/team/tool_agent.go 82.35% 13 Missing and 11 partials :warning:
adk/middlewares/plantask/task_api.go 80.21% 10 Missing and 8 partials :warning:
adk/middlewares/team/lifecycle.go 85.93% 10 Missing and 8 partials :warning:
adk/middlewares/team/mailbox_pump.go 83.01% 13 Missing and 5 partials :warning:
adk/middlewares/team/team_config.go 90.11% 9 Missing and 8 partials :warning:
adk/middlewares/team/mailbox_file.go 88.96% 7 Missing and 9 partials :warning:
adk/middlewares/team/tool_send_message.go 90.50% 8 Missing and 7 partials :warning:
... and 11 more
Additional details and impacted files
@@             Coverage Diff             @@
##             alpha/09     #915   +/-   ##
===========================================
  Coverage            ?   83.37%           
===========================================
  Files               ?      183           
  Lines               ?    23844           
  Branches            ?        0           
===========================================
  Hits                ?    19879           
  Misses              ?     2664           
  Partials            ?     1301           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Mar 27 '26 02:03 codecov[bot]