compression_test_low_threshold.log 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. /Users/elksmmx/miniconda3/lib/python3.13/site-packages/lark_oapi/ws/pb/google/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  2. __import__('pkg_resources').declare_namespace(__name__)
  3. ============================================================
  4. 压缩后缓存功能测试
  5. ============================================================
  6. 1. 加载 prompt 配置...
  7. 2. 构建任务消息...
  8. 3. 创建 Agent Runner...
  9. - 模型: sonnet-4.6
  10. - 压缩阈值: 10,000 tokens (降低以快速触发)
  11. Traceback (most recent call last):
  12. File "/Users/elksmmx/Desktop/agent 2.10/Agent/examples/cache-test/run_compression_test.py", line 156, in <module>
  13. asyncio.run(main())
  14. ~~~~~~~~~~~^^^^^^^^
  15. File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/runners.py", line 195, in run
  16. return runner.run(main)
  17. ~~~~~~~~~~^^^^^^
  18. File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/runners.py", line 118, in run
  19. return self._loop.run_until_complete(task)
  20. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  21. File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/base_events.py", line 725, in run_until_complete
  22. return future.result()
  23. ~~~~~~~~~~~~~^^
  24. File "/Users/elksmmx/Desktop/agent 2.10/Agent/examples/cache-test/run_compression_test.py", line 60, in main
  25. runner = AgentRunner(
  26. trace_store=store,
  27. ...<3 lines>...
  28. compression_config=compression_config # 使用自定义压缩配置
  29. )
  30. TypeError: AgentRunner.__init__() got an unexpected keyword argument 'compression_config'