Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ print(res)

VeADK provides several useful command line tools for faster deployment and optimization, such as:

- `veadk deploy`: deploy your project to Volcengine VeFaaS platform
- `veadk deploy`: deploy your project to Volcengine VeFaaS platform (you can use `veadk init` to init a demo project first)
- `veadk prompt`: otpimize the system prompt of your agent by PromptPilot

## Contribution
Expand Down
4 changes: 1 addition & 3 deletions veadk/a2a/remote_ve_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ def __init__(self, name: str, url: str):

agent_card_object = AgentCard.model_validate_json(str(agent_card_json_str))

super().__init__(
name=name, description="weather reporter", agent_card=agent_card_object
)
super().__init__(name=name, agent_card=agent_card_object)
28 changes: 28 additions & 0 deletions veadk/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import importlib.util
import os
import shutil
import sys
from pathlib import Path

Expand All @@ -30,6 +31,33 @@
app = typer.Typer(name="vego")


@app.command()
def init():
"""Init a veadk project that can be deployed to Volcengine VeFaaS."""
from rich.prompt import Confirm, Prompt

cwd = Path.cwd()
template_dir = Path(__file__).parent.resolve() / "services" / "vefaas" / "template"

name = Prompt.ask("Project name", default="veadk-cloud-agent")

target_dir = cwd / name

if target_dir.exists():
response = Confirm.ask(
f"Target directory '{target_dir}' already exists, do you want to overwrite it?: "
)
if not response:
print("Operation cancelled.")
return
else:
shutil.rmtree(target_dir) # 删除旧目录
print(f"Deleted existing directory: {target_dir}")

shutil.copytree(template_dir, target_dir)
print(f"Created new project: {name}")


# @app.command()
# def web(
# path: str = typer.Option(".", "--path", help="Agent project path"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You must export your agent and short-term memory in `src/config.py`.

## Deploy

We recommand you deploy this project by the `cloud` module of VeADK.
We recommend you deploy this project by the `cloud` module of VeADK.

```bash
python deploy.py
Expand Down