Skip to content

Conversation

@VincentV89
Copy link
Collaborator

Description of Changes

Implements multi-agent collaboration feature in Agent Builder.

This change introduces the ability to configure agents with sub-agents, enabling delegation of specialized tasks. It includes UI updates, backend logic, and schema changes to support this functionality.

Changes

  • Added Python 3.12 runtime for lambda functions and a lambda function to list available AgentCore runtimes.
  • Implemented SubAgent class in agent.py to represent and invoke sub-agents via ARN.
  • Modified AgentManager in agent.py to incorporate sub-agents as tools.
  • Added new file list_agent_core_runtimes.py to fetch available AgentCore runtimes.
  • Updated the agent repository in agent-repository.ts to include subAgents during agent creation and updates.
  • Updated agent service to include sub-agent configuration in agent-service.ts.
  • Added SubAgentSchema to validation schemas in schemas.ts.
  • Updated web UI components (AgentForm.tsx, AgentChatUnified.tsx, SubAgentManager.tsx) to allow users to configure sub-agents.
  • Added a new hook useAgentCoreRuntimes.ts for fetching AgentCore Runtimes in the front end.
  • Modified AgentChatUnified.tsx to pass the subAgents config to the useAgentCore hook.
  • Impact
  • Agents can now be configured to delegate tasks to other specialized agents via their ARNs.
  • Introduces a new API endpoint for listing available AgentCore Runtimes.
  • Affects the Agent Builder UI, adding a sub-agent configuration section.
  • No immediate breaking changes apparent; existing agents will function as before without sub-agents.

Checklist

  • Modified relevant documentation
  • Verified operation in local environment
  • Executed npm run cdk:test and if there are snapshot differences, execute npm run cdk:test:update-snapshot to update snapshots

Related Issues

Please list related issues as much as possible.

VincentV89 and others added 3 commits January 9, 2026 17:13
```
test: update CDK snapshots for infrastructure changes

Update test snapshots to reflect:
- Rename ECS target group from ECSGroup to ECSPrivateGroup for clarity
- Update agent runtime container image hash
- Remove unused AWS resources including Bedrock log permissions,
  Lambda functions, and related IAM policies
- Clean up test fixtures to match simplified infrastructure

These changes align the test snapshots with recent infrastructure
refactoring that removed deprecated resources and improved naming
conventions for the closed network mode deployment.
@@ -0,0 +1,103 @@
"""Lambda function to list AgentCore Runtime agents."""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!
We prefer TypeScript in this project. (Strands and fargate s3 server is exception)

We are migrating most of typescript lambda behind ALB to lambda monolith in another PR. Can you implement it in TypeScript so it would be easier to merge conflict?

agent_core_client = None

# Initialize the Browser tool
browser_tool = AgentCoreBrowser(region="us-east-1")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The region should be configurable

Suggestion: Use environment variable consistently

Suggested change
browser_tool = AgentCoreBrowser(region="us-east-1")
browser_tool = AgentCoreBrowser(region=os.environ.get("AWS_REGION", "us-east-1"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants