Conversation
…ather, and Simple agents
There was a problem hiding this comment.
Pull Request Overview
This PR introduces an agent system with a decorator-based approach for creating and managing agents. The system provides an easy-to-use @serve decorator that allows users to define agents with minimal boilerplate and automatic service management.
Key Changes
- Added agent type definitions and base classes for streaming agents
- Implemented a decorator system (
@serve) that automatically wraps classes into agents with A2A SDK integration - Created an agent registry for managing decorated agent classes
- Built connection management utilities for starting, stopping, and communicating with agents
Reviewed Changes
Copilot reviewed 11 out of 14 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
python/valuecell/utils/uuid.py |
Utility for generating UUIDs with optional prefixes |
python/valuecell/utils/port.py |
Port management utility for finding available ports |
python/valuecell/utils/__init__.py |
Utils package exports |
python/valuecell/core/agent/types.py |
Base agent types and response models |
python/valuecell/core/agent/registry.py |
Agent registry for managing decorated agent classes |
python/valuecell/core/agent/decorator.py |
Core @serve decorator implementation with A2A integration |
python/valuecell/core/agent/listener.py |
HTTP notification listener for push notifications |
python/valuecell/core/agent/client.py |
Client for communicating with agents |
python/valuecell/core/agent/connect.py |
Connection manager for starting/stopping agents |
python/valuecell/core/agent/tests/test_e2e_demo.py |
End-to-end test demonstrating the decorator system |
python/pyproject.toml |
Added a2a-sdk dependency |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.