feat: add veadk init command in CLI module#10
Merged
yaozheng-fang merged 4 commits intomainfrom Aug 4, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces the veadk init command in the CLI module and reorganizes the VeFaaS project template structure. The changes include adding support for remote VE agents and improving modularity by moving template files to a dedicated CLI services directory.
- Added support for
RemoteVeAgentin the Runner class with conditional handling - Created a complete VeFaaS project template with deployment scripts and configuration
- Updated documentation to include A2A agent usage examples
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| veadk/runner.py | Modified to support both Agent and RemoteVeAgent types with conditional long-term memory handling |
| veadk/cli/services/vefaas/template/src/run.sh | Added deployment script for VeFaaS projects with configurable host/port settings |
| veadk/cli/services/vefaas/template/src/requirements.txt | Created requirements file with VeADK dependencies |
| veadk/cli/services/vefaas/template/src/config.py | Added configuration template with agent setup and tracer configurations |
| veadk/cli/services/vefaas/template/src/app.py | Created FastAPI application entry point for VeFaaS deployment |
| veadk/cli/services/vefaas/template/deploy.py | Added deployment script using CloudAgentEngine |
| veadk/cli/services/vefaas/template/config.yaml.example | Created example configuration for model and credentials |
| veadk/cli/services/vefaas/template/README.md | Added documentation for the VeFaaS template project |
| veadk/a2a/remote_ve_agent.py | Implemented RemoteVeAgent class for A2A protocol communication |
| docs/docs/agent.md | Updated documentation with A2A agent usage examples |
veadk/a2a/remote_ve_agent.py
Outdated
| agent_card_object = AgentCard.model_validate_json(str(agent_card_json_str)) | ||
|
|
||
| super().__init__( | ||
| name=name, description="weather reporter", agent_card=agent_card_object |
There was a problem hiding this comment.
The hardcoded description 'weather reporter' should be made configurable or derived from the agent card to make this class more generic and reusable.
Suggested change
| name=name, description="weather reporter", agent_card=agent_card_object | |
| name=name, description=agent_card_dict.get("description", ""), agent_card=agent_card_object |
|
|
||
| ## Deploy | ||
|
|
||
| We recommand you deploy this project by the `cloud` module of VeADK. |
There was a problem hiding this comment.
Spelling error: 'recommand' should be 'recommend'.
Suggested change
| We recommand you deploy this project by the `cloud` module of VeADK. | |
| We recommend you deploy this project by the `cloud` module of VeADK. |
yaozheng-fang
added a commit
that referenced
this pull request
Aug 15, 2025
* feat: add remote agent * feat: add veadk init command in CLI * fix: fix typos
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.
veadk initcommand in CLI module