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, default=DEEP_PROMPT,
metadata={"name": "系统提示词", "description": "Deep智能体的角色和行为指导"}, metadata={"name": "系统提示词", "description": "Deep智能体的角色和行为指导"},
) )
subagents_model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field( subagents_model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field(
default="siliconflow/deepseek-ai/DeepSeek-V3.2", default="siliconflow/deepseek-ai/DeepSeek-V3.2",
metadata={ metadata={

View File

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