Feat/test run generated agent#587
Merged
yaozheng-fang merged 6 commits intoJun 8, 2026
Merged
Conversation
- Add AgentTest component for testing agents in modal - Implement /web/deploy-temp-agent API endpoint - Support temp agent deployment and SSE streaming - Fix env loading to support running from any directory - Patch AgentLoader to handle temporary agents Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
yaozheng-fang
approved these changes
Jun 8, 2026
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.
🚀 功能:支持测试运行生成的 Agent 代码
功能概述
在自定义 Agent 创建工作流中新增"测试运行"功能,允许用户在生成代码后立即在弹窗中测试 Agent 行为,无需手动部署。
主要变更
后端 (
veadk/cli/cli_frontend.py)POST /web/deploy-temp-agent和DELETE /web/delete-temp-agent/{name}接口/tmp/veadk_temp_{name}/,与正式 Agent 隔离AgentLoader.load_agent方法,使 ADK 能加载临时 Agentfind_dotenv()替代os.getcwd(),支持从任意子目录启动前端
AgentTest.tsx组件:Modal 弹窗式聊天界面,支持 SSE 流式响应ProjectPreview.tsx添加"测试运行"按钮,自动部署临时 Agent 并打开测试弹窗client.ts扩展临时 Agent API 接口技术要点
agents_dir,服务重启后自动失效/tmp目录测试验证