myagent-ai 1.23.62 → 1.23.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/main_agent.py +2 -2
- package/package.json +1 -1
package/agents/main_agent.py
CHANGED
|
@@ -795,8 +795,8 @@ class MainAgent(BaseAgent):
|
|
|
795
795
|
+ self.SYSTEM_PROMPT.split("\n", 1)[1]
|
|
796
796
|
)
|
|
797
797
|
system_content = _prompt_with_placeholder.replace(_CONTEXT_PLACEHOLDER, context_xml)
|
|
798
|
-
|
|
799
|
-
|
|
798
|
+
system_content = system_content + "\n最后,再检查输出格式,确保满足以下要求:" + self.xml_prompt
|
|
799
|
+
|
|
800
800
|
# Step 3: 构建 LLM 消息(必须包含 role=user,否则 OpenAI 兼容 API 返回 400)
|
|
801
801
|
messages = [Message(role="system", content=system_content)]
|
|
802
802
|
|