| 12345678910111213141516171819202122232425262728293031 |
- /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.
- __import__('pkg_resources').declare_namespace(__name__)
- ============================================================
- 压缩后缓存功能测试
- ============================================================
- 1. 加载 prompt 配置...
- 2. 构建任务消息...
- 3. 创建 Agent Runner...
- - 模型: sonnet-4.6
- - 压缩阈值: 10,000 tokens (降低以快速触发)
- Traceback (most recent call last):
- File "/Users/elksmmx/Desktop/agent 2.10/Agent/examples/cache-test/run_compression_test.py", line 156, in <module>
- asyncio.run(main())
- ~~~~~~~~~~~^^^^^^^^
- File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/runners.py", line 195, in run
- return runner.run(main)
- ~~~~~~~~~~^^^^^^
- File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/runners.py", line 118, in run
- return self._loop.run_until_complete(task)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
- File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/base_events.py", line 725, in run_until_complete
- return future.result()
- ~~~~~~~~~~~~~^^
- File "/Users/elksmmx/Desktop/agent 2.10/Agent/examples/cache-test/run_compression_test.py", line 60, in main
- runner = AgentRunner(
- trace_store=store,
- ...<3 lines>...
- compression_config=compression_config # 使用自定义压缩配置
- )
- TypeError: AgentRunner.__init__() got an unexpected keyword argument 'compression_config'
|