sycommon-python-lib 0.2.5a32__py3-none-any.whl → 0.2.5a33__py3-none-any.whl

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.
@@ -582,6 +582,14 @@ class DeepAgent:
582
582
  continue
583
583
 
584
584
  msg_type = msg.__class__.__name__
585
+
586
+ # 🔑 跳过上下文压缩产生的摘要消息,不发送给前端
587
+ # SummarizationMiddleware 会将摘要包装为 HumanMessage(lc_source="summarization"),
588
+ # 这仅用于模型内部理解上下文,不应展示给用户
589
+ if msg_type == "HumanMessage" and getattr(msg, "additional_kwargs", {}).get("lc_source") == "summarization":
590
+ SYLogger.debug(f"[DeepAgent] 跳过摘要消息 (lc_source=summarization)")
591
+ continue
592
+
585
593
  raw_content = msg.content
586
594
  # 🔑 处理 content 为 list 的情况(多模态模型)
587
595
  if isinstance(raw_content, list):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sycommon-python-lib
3
- Version: 0.2.5a32
3
+ Version: 0.2.5a33
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -129,7 +129,7 @@ sycommon/services.py,sha256=pUcV0xFrn1hrArD9YwE8m6CMrrWPwNBAqUIWhgsVkzY,24943
129
129
  sycommon/agent/__init__.py,sha256=mxceAeUifQ-DKvWp7ZEJIFlmOCb5wpYHPGQw3rwEN8I,4378
130
130
  sycommon/agent/agent_manager.py,sha256=UhhaekEumT7g4v_Z1UB4jTp13X0n8M8erYaQdkGGWkA,13620
131
131
  sycommon/agent/chat_events.py,sha256=t7qWa6OrIWLfqtd1AnqaVP67QWkn1JxpCBTZYQpoLuM,14226
132
- sycommon/agent/deep_agent.py,sha256=m3syXhyV0Y4zsqy-Qo_jvszER5nbgZ5jl9v_YepW5wY,57219
132
+ sycommon/agent/deep_agent.py,sha256=N7liWTq3mk0JwDjeCg5jpbX-Q95cdMW6Wvn2Ofl4EZs,57751
133
133
  sycommon/agent/multi_agent_team.py,sha256=W5gP6sWIYhhXf6iBLHfyTIs9eAhUdkWrn_PF6W2cESs,26059
134
134
  sycommon/agent/summarization_utils.py,sha256=5eiLtxRZKTzO0tnr8sVaL-H3a0eUtvXpCa28Jw_j2eE,10889
135
135
  sycommon/agent/mcp/__init__.py,sha256=iKrdDhIrFsNIkqG_kgcwNe-nOiM6uVfolKv44LfQ-FQ,636
@@ -279,8 +279,8 @@ sycommon/tools/syemail.py,sha256=BDFhgf7WDOQeTcjxJEQdu0dQhnHFPO_p3eI0-Ni3LhQ,561
279
279
  sycommon/tools/timing.py,sha256=OiiE7P07lRoMzX9kzb8sZU9cDb0zNnqIlY5pWqHcnkY,2064
280
280
  sycommon/xxljob/__init__.py,sha256=7eoBlQxv-B39IfRSCY2bkqdGYs1QRe1umAWd88VMEEM,86
281
281
  sycommon/xxljob/xxljob_service.py,sha256=JIEJaGXhqrTLcyxlyynSrsHg9bBnDNzX-D4qIWLRPUE,6815
282
- sycommon_python_lib-0.2.5a32.dist-info/METADATA,sha256=BTCQAIi4BIvkS2K6H4dwTOBfgxLPil556tTTROONDJc,7914
283
- sycommon_python_lib-0.2.5a32.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
284
- sycommon_python_lib-0.2.5a32.dist-info/entry_points.txt,sha256=gsR4SssKxDWjRU8ggidzNcdMXDPRSKRS7UaGyNP84Qg,92
285
- sycommon_python_lib-0.2.5a32.dist-info/top_level.txt,sha256=RgphKrg7nJyZ7irJqbxFr-5H2LUYTvI7ivoWZH2hcD0,29
286
- sycommon_python_lib-0.2.5a32.dist-info/RECORD,,
282
+ sycommon_python_lib-0.2.5a33.dist-info/METADATA,sha256=BPVCbbBkWb2NPPEbyiTVlTQjq5suG8JuZOSrpMiTbrM,7914
283
+ sycommon_python_lib-0.2.5a33.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
284
+ sycommon_python_lib-0.2.5a33.dist-info/entry_points.txt,sha256=gsR4SssKxDWjRU8ggidzNcdMXDPRSKRS7UaGyNP84Qg,92
285
+ sycommon_python_lib-0.2.5a33.dist-info/top_level.txt,sha256=RgphKrg7nJyZ7irJqbxFr-5H2LUYTvI7ivoWZH2hcD0,29
286
+ sycommon_python_lib-0.2.5a33.dist-info/RECORD,,