Browse Source

Update 第九章 上下文工程.md

weijia cheng 11 tháng trước cách đây
mục cha
commit
55f651077a
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      docs/chapter9/第九章 上下文工程.md

+ 1 - 1
docs/chapter9/第九章 上下文工程.md

@@ -731,7 +731,7 @@ class ContextAwareAgent(SimpleAgent):
             {"role": "system", "content": optimized_context},
             {"role": "user", "content": user_input}
         ]
-        response = self.llm.invoke(optimized_context)
+        response = self.llm.invoke(message)
 
         # 3. 更新对话历史
         from hello_agents.core.message import Message