feat: Agent 批量测试、作业助手与上传预览;Windows 启动脚本与文档- 新增 run_agent_test_cases 与示例 JSON、(红头)agent测试用例文档
- 扩展 test_agent_execution(--homework、UTF-8 控制台) - 后端:uploads 预览、file_read、工作流与对话落盘等 - 前端:AgentChatPreview 与设计器相关调整 - 忽略 redis二进制、agent_workspaces、uploads、tessdata 等本机产物 Made-with: Cursor
This commit is contained in:
@@ -18,6 +18,7 @@ from app.models.execution import Execution
|
||||
from app.models.agent import Agent
|
||||
from app.models.workflow import Workflow
|
||||
from app.services.execution_budget import merge_budget_for_execution
|
||||
from app.services.agent_workspace_chat_log import try_append_agent_dialogue_after_success
|
||||
import asyncio
|
||||
import time
|
||||
from typing import Any, Dict, Optional
|
||||
@@ -141,7 +142,11 @@ def execute_workflow_task(
|
||||
execution.execution_time = execution_time
|
||||
execution.pause_state = None
|
||||
db.commit()
|
||||
|
||||
|
||||
try_append_agent_dialogue_after_success(
|
||||
db, execution, input_data, result, execution_logger
|
||||
)
|
||||
|
||||
# 记录执行完成日志
|
||||
execution_logger.info(f"工作流任务执行完成,耗时: {execution_time}ms")
|
||||
|
||||
@@ -325,6 +330,10 @@ def resume_workflow_task(
|
||||
ex3.pause_state = None
|
||||
db.commit()
|
||||
|
||||
try_append_agent_dialogue_after_success(
|
||||
db, ex3, base_input, result, execution_logger
|
||||
)
|
||||
|
||||
if execution_logger:
|
||||
execution_logger.info(f"审批后工作流执行完成,耗时: {execution_time}ms")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user