fix(context): 修复 deep_agent 的 Prompt 无法正确解析的问题

This commit is contained in:
Wenjie Zhang 2026-01-23 22:09:33 +08:00
parent 36e09cde71
commit b271da3ca8
2 changed files with 7 additions and 4 deletions

View File

@ -99,10 +99,11 @@ class DeepContext(BaseContext):
"""
# 深度分析专用的系统提示词
system_prompt: str = field(
system_prompt: Annotated[str, {"__template_metadata__": {"kind": "prompt"}}] = field(
default=DEEP_PROMPT,
metadata={"name": "系统提示词", "description": "Deep智能体的角色和行为指导"},
)
subagents_model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field(
default="siliconflow/deepseek-ai/DeepSeek-V3.2",
metadata={

View File

@ -879,7 +879,8 @@ const confirmDeleteConfig = async () => {
resize: vertical;
background: var(--gray-50);
border: 1px solid var(--gray-200);
padding: 8px 12px;
padding: 6px 10px;
font-size: 12px;
&:focus {
outline: none;
@ -911,8 +912,9 @@ const confirmDeleteConfig = async () => {
word-break: break-word;
line-height: 1.5;
color: var(--gray-900);
font-size: 14px;
// min-height: 100px;
font-size: 12px;
max-height: 500px;
overflow: scroll;
&.is-placeholder {
color: var(--gray-400);