feat(schedule): 优化排程任务配置与进度契约处理逻辑
This commit is contained in:
1 parent
d54f51ddc3
commit
99453aa52a
65 files changed
+2837
-487
No files matched your search
@@ -12,6 +12,7 @@ from typing import Any
|
||||
|
||||
from app.services.agent_registry.catalog_loader import (
|
||||
build_agent_type_catalog,
|
||||
get_agent_type_default_capabilities,
|
||||
get_default_capabilities,
|
||||
get_platform_config,
|
||||
get_tool_run_progress_defaults,
|
||||
@@ -41,7 +42,9 @@ def build_agent_registry_schema() -> dict[str, Any]:
|
||||
agent_types.append({
|
||||
**item,
|
||||
'required_fields': list(entry.get('required_fields') or []),
|
||||
'default_capabilities': get_agent_type_default_capabilities(str(code or '')),
|
||||
'forced_capabilities': dict(entry.get('forced_capabilities') or {}),
|
||||
'progress_contract': deepcopy_schema(entry.get('progress_contract')),
|
||||
'default_intent_routes': list(entry.get('default_intent_routes') or []),
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user