refactor(backend): 更新 agent 服务和配置层
This commit is contained in:
@@ -160,10 +160,6 @@ class AgentRuntimeSettings(BaseModel):
|
||||
user_context_cache_prefix: str = "agent:user-context"
|
||||
user_context_cache_ttl_seconds: int = Field(default=600, ge=60, le=86400)
|
||||
user_context_cache_max_turns: int = Field(default=6, ge=1, le=100)
|
||||
history_context_cache_prefix: str = "agent:history-context"
|
||||
history_context_cache_ttl_seconds: int = Field(default=86400, ge=60, le=172800)
|
||||
default_model_code: str = ""
|
||||
streaming_enabled: bool = True
|
||||
|
||||
|
||||
class LlmSettings(BaseModel):
|
||||
|
||||
@@ -1,16 +1,27 @@
|
||||
agents:
|
||||
- agent_type: router
|
||||
- agent_type: worker
|
||||
llm_model_code: qwen3.5-35b-a3b
|
||||
status: active
|
||||
config:
|
||||
temperature: 0.7
|
||||
max_tokens: null
|
||||
timeout_seconds: 30
|
||||
context_messages:
|
||||
mode: number
|
||||
count: 20
|
||||
enabled_tool_groups:
|
||||
- read
|
||||
- write
|
||||
|
||||
- agent_type: memory
|
||||
llm_model_code: qwen3.5-flash
|
||||
status: active
|
||||
config:
|
||||
temperature: 0.7
|
||||
max_tokens: null
|
||||
timeout_seconds: 30
|
||||
|
||||
- agent_type: worker
|
||||
llm_model_code: deepseek-chat
|
||||
status: active
|
||||
config:
|
||||
temperature: 0.7
|
||||
max_tokens: null
|
||||
timeout_seconds: 30
|
||||
context_messages:
|
||||
mode: day
|
||||
count: 2
|
||||
enabled_tool_groups:
|
||||
- read
|
||||
|
||||
@@ -74,11 +74,37 @@ routes:
|
||||
auth_required: true
|
||||
path_params:
|
||||
- id
|
||||
- route_id: calendar.event_create
|
||||
path: /calendar/events/new
|
||||
description: Create page for one calendar event.
|
||||
category: calendar
|
||||
auth_required: true
|
||||
query_params:
|
||||
- date
|
||||
- route_id: calendar.event_edit
|
||||
path: /calendar/events/{id}/edit
|
||||
description: Edit page for one calendar event.
|
||||
category: calendar
|
||||
auth_required: true
|
||||
path_params:
|
||||
- id
|
||||
- route_id: calendar.event_share
|
||||
path: /calendar/events/{id}/share
|
||||
description: Share settings page for one calendar event.
|
||||
category: calendar
|
||||
auth_required: true
|
||||
path_params:
|
||||
- id
|
||||
- route_id: todo.list
|
||||
path: /todo
|
||||
description: Todo quadrants and backlog overview.
|
||||
category: todo
|
||||
auth_required: true
|
||||
- route_id: todo.create
|
||||
path: /todo/new
|
||||
description: Create page for one todo item.
|
||||
category: todo
|
||||
auth_required: true
|
||||
- route_id: todo.detail
|
||||
path: /todo/{id}
|
||||
description: Detail page for one todo item.
|
||||
@@ -86,6 +112,13 @@ routes:
|
||||
auth_required: true
|
||||
path_params:
|
||||
- id
|
||||
- route_id: todo.edit
|
||||
path: /todo/{id}/edit
|
||||
description: Dedicated subpage for editing one todo item (not an in-page modal).
|
||||
category: todo
|
||||
auth_required: true
|
||||
path_params:
|
||||
- id
|
||||
- route_id: settings.main
|
||||
path: /settings
|
||||
description: Settings hub page.
|
||||
|
||||
Reference in New Issue
Block a user