feat(agent): 增强 Agent 配置,新增结构化字段与聊天功能支持

This commit is contained in:
hugo committed 2026-07-07 11:10:32 +08:00
1 parent ac4262cd75
commit c8ce77199e
183 files changed
+11690 -2300

No files matched your search

+4 -4
View File
@@ -750,10 +750,10 @@ class DifyService:
def _resolve_persist_run_id() -> int | None:
try:
from app.services.file_check_tools.agent_resolver import is_file_check_chat_agent
from app.services.agent_registry.resolver import is_file_check_runtime_ready
from app.services.file_check_tools.chat_log_run_binding import resolve_run_id_for_chat_log
if not is_file_check_chat_agent(agent):
if not is_file_check_runtime_ready(agent):
return None
return resolve_run_id_for_chat_log(
session_id=session_id,
@@ -1158,10 +1158,10 @@ class DifyService:
db_write_started = time.time()
run_id = None
try:
from app.services.file_check_tools.agent_resolver import is_file_check_chat_agent
from app.services.agent_registry.resolver import is_file_check_runtime_ready
from app.services.file_check_tools.chat_log_run_binding import resolve_run_id_for_chat_log
if is_file_check_chat_agent(agent):
if is_file_check_runtime_ready(agent):
run_id = resolve_run_id_for_chat_log(
session_id=session_id,
query=query,