test_output.log 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. docstring_parser not installed, using fallback docstring parsing
  2. .prompt 文件没有找到任何分节($section$)
  3. Agent run failed: Client error '400 Bad Request' for url 'https://openrouter.ai/api/v1/chat/completions'
  4. For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
  5. ================================================================================
  6. 集成测试 6: 信号驱动机制测试
  7. ================================================================================
  8. 1. 加载任务...
  9. ✓ 任务类型: 数据验证模块实现
  10. ✓ 测试重点: 信号机制
  11. ✓ 监控内容: 信号发送、接收、轮询
  12. 2. 创建 Agent Runner...
  13. - 模型: Claude Sonnet 4.5
  14. - 信号机制: 已启用
  15. ✅ SignalBus 已创建
  16. 3. 启动 Agent...
  17. ================================================================================
  18. [Trace] 开始: 64d296e2...
  19. [OpenRouter] Error 400: {"error":{"message":"Input required: specify \"prompt\" or \"messages\"","code":400},"user_id":"org_37nIBLgwThIyGmEMvDzTcFwuTGo"}
  20. [Trace] 失败: Client error '400 Bad Request' for url 'https://openrouter.ai/api/v1/chat/completions'
  21. For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
  22. Traceback (most recent call last):
  23. File "/Users/elksmmx/Desktop/Agent/examples/integration_test_6/run.py", line 369, in <module>
  24. asyncio.run(main())
  25. ~~~~~~~~~~~^^^^^^^^
  26. File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/runners.py", line 195, in run
  27. return runner.run(main)
  28. ~~~~~~~~~~^^^^^^
  29. File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/runners.py", line 118, in run
  30. return self._loop.run_until_complete(task)
  31. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  32. File "/Users/elksmmx/miniconda3/lib/python3.13/asyncio/base_events.py", line 725, in run_until_complete
  33. return future.result()
  34. ~~~~~~~~~~~~~^^
  35. File "/Users/elksmmx/Desktop/Agent/examples/integration_test_6/run.py", line 128, in main
  36. async for item in runner.run(
  37. ...<107 lines>...
  38. pass
  39. File "/Users/elksmmx/Desktop/Agent/agent/core/runner.py", line 444, in run
  40. result = await self.llm_call(
  41. ^^^^^^^^^^^^^^^^^^^^
  42. ...<4 lines>...
  43. )
  44. ^
  45. File "/Users/elksmmx/Desktop/Agent/agent/llm/openrouter.py", line 131, in llm_call
  46. return await openrouter_llm_call(messages, model, tools, **kwargs)
  47. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. File "/Users/elksmmx/Desktop/Agent/agent/llm/openrouter.py", line 72, in openrouter_llm_call
  49. response.raise_for_status()
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  51. File "/Users/elksmmx/miniconda3/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
  52. raise HTTPStatusError(message, request=request, response=self)
  53. httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://openrouter.ai/api/v1/chat/completions'
  54. For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400