From 0d10e1e75fbc927b50bf5ffc7cd53f3da0979ab8 Mon Sep 17 00:00:00 2001 From: lgjichi Date: Tue, 6 Jan 2026 11:12:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E7=AA=97=E5=8F=A3=E9=85=8D=E7=BD=AE=E5=88=B0IntentRec?= =?UTF-8?q?ognition=E6=A8=A1=E5=9E=8B=20--story=3D126964174?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agent/aidev_agent/services/pydantic_models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/agent/aidev_agent/services/pydantic_models.py b/src/agent/aidev_agent/services/pydantic_models.py index 516cf2c4..c92a61e5 100644 --- a/src/agent/aidev_agent/services/pydantic_models.py +++ b/src/agent/aidev_agent/services/pydantic_models.py @@ -114,6 +114,12 @@ class IntentRecognition(BaseModel): tool_output_compress_thrd: int = Field( default=int(os.getenv("TOOL_OUTPUT_COMPRESS_THRD", "5000")), description=("工具输出压缩阈值") ) + context_window: int = Field( + default=int(os.getenv("CONTEXT_WINDOW", "16")), + description="携带上下文轮数", + ge=1, + le=30, + ) agent_type: str | None = Field(default=os.getenv("AGENT_TYPE"), description=("agent类")) max_tool_output_len: int = Field( default=int(os.getenv("MAX_TOOL_OUTPUT_LEN", "500")), description=("工具调用结果展示的最大长度")