From bad36aa4123a312993bc0a446b1c2f2a968e52c1 Mon Sep 17 00:00:00 2001 From: oudecheng <13802883547@139.com> Date: Thu, 14 May 2026 15:46:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=20AgentPromptProvider?= =?UTF-8?q?=20=E4=B8=AD=E7=9A=84=E5=AD=97=E6=AE=B5=E5=91=BD=E5=90=8D?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gateway/agent_prompt_provider.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gateway/agent_prompt_provider.rs b/src/gateway/agent_prompt_provider.rs index 080c21d..d8726f0 100644 --- a/src/gateway/agent_prompt_provider.rs +++ b/src/gateway/agent_prompt_provider.rs @@ -11,7 +11,7 @@ use crate::storage::PromptInjectionRepository; /// 以及动态生成的系统环境信息。 pub struct AgentPromptProvider { /// 重新注入间隔(用户消息数) - reinject_every: usize, + _reinject_every: usize, /// LLM 提供者配置(用于生成系统环境信息) provider_config: LLMProviderConfig, /// 会话持久化仓库(用于记录注入状态) @@ -26,7 +26,7 @@ impl AgentPromptProvider { repository: Arc, ) -> Self { Self { - reinject_every, + _reinject_every: reinject_every, provider_config, repository, }