Feat/deploy to agentkit and add agent by FirstayZheng · Pull Request #595 · volcengine/veadk-python · GitHub
Skip to content

Feat/deploy to agentkit and add agent#595

Merged
yaozheng-fang merged 4 commits into
volcengine:mainfrom
FirstayZheng:feat/deploy-to-agentkit
Jun 10, 2026
Merged

Feat/deploy to agentkit and add agent#595
yaozheng-fang merged 4 commits into
volcengine:mainfrom
FirstayZheng:feat/deploy-to-agentkit

Conversation

@FirstayZheng

Copy link
Copy Markdown
Contributor

功能

✅ 部署到 AgentKit Runtime(点击按钮,等待 2-5 分钟)
✅ 部署成功后显示 Agent 信息(名称、API 端点、API Key)
✅ 添加 Agent 到连接列表(调用 addConnection)
✅ 自动跳转到聊天界面(关闭创建工作室,选中新 Agent,开始会话)

改动

  • 后端:新增部署 API(调用 CLI + SDK)
  • 前端:部署 UI + 代码生成修复 + 自动导航逻辑
  • 修复:CLI 输出解析、API Key 获取、FastAPI 入口生成等问题

后端实现 (veadk/cli/cli_frontend.py)

新增 API 端点:

  • POST /web/deploy-agentkit - 部署 Agent 到 AgentKit Runtime

    • 接收前端生成的项目文件(app.py, requirements.txt 等)
    • 生成 agentkit.yaml 配置文件
    • 在临时目录中调用 veadk agentkit launch CLI 命令
    • 解析 CLI 输出,提取 API Key 名称和 Endpoint URL
    • 清理临时目录并返回部署结果
  • POST /web/create-agentkit-apikey - 创建 API Key 的实际密钥值

    • 调用 AgentKit SDK 生成具有访问权限的实际 API Key
    • 返回可用于调用 Agent API 的密钥

@FirstayZheng FirstayZheng force-pushed the feat/deploy-to-agentkit branch from e195460 to d678bfa Compare June 10, 2026 07:22
@FirstayZheng FirstayZheng force-pushed the feat/deploy-to-agentkit branch from d678bfa to 21142f4 Compare June 10, 2026 07:33
@yaozheng-fang yaozheng-fang merged commit 7c2746d into volcengine:main Jun 10, 2026
5 checks passed
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.

2 participants