OpenBMB / XAgent

An Autonomous LLM Agent for Complex Task Solving
https://blog.x-agent.net/blog/xagent/
Apache License 2.0
7.82k stars 795 forks source link

输入任务后不生成任何内容 #336

Closed xxll88 closed 6 months ago

xxll88 commented 6 months ago

Issue Description / 问题描述

linux ubuntu 22 docker compose up 后正常启动无错误显示,配置openai key 后 执行 python run.py --task "calculate 7+8=" --model "gpt-3.5-turbo-16k" --config-file "assets/config.yml" 显示:

-=-=-=-=-=-=-= Performing Task 1.1 (Understand the calculation operation): Begin -=-=-=-=-=-=-=
Task Name:  Understand the calculation operation
Task Goal:  Understand the addition operation in mathematics
Task Prior-Criticism:  The user may not have a clear understanding of addition
Task Milestones:
-   Research and read about addition operation
-   Understand the concept of adding two numbers together
-   Be able to explain addition to someone else
Task Status:  TODO
Constructing an Agent:  ToolAgent
Constructing a searching method:  ReACTChainSearch
-=-=-=-=-=-=-= THOUGHTS, REASONING, PLAN AND CRITICISM WILL NOW BE VERIFIED BY AGENT -=-=-=-=-=-=-=
-=-=-=-=-=-=-=Recorder Start-=-=-=-=-=-=-=
  Current: 1.1 Node: tool_server_pair 1
-=-=-=-=-=-=-=Data -=-=-=-=-=-=-=
  {
    "url": "execute_tool",
    "payload": {
        "tool_name": "FileSystemEnv_print_filesys_struture",
        "arguments": {
            "return_root": true
        }
    },
    "response_status_code": 200,
    "tool_output": "Global Root Work Directory: /app/workspace/\n- /\n"
}
-=-=-=-=-=-=-=Recorder End-=-=-=-=-=-=-=

明显选择的tool 不对

web 登陆后,输入任务后,outer loop没有生成任何内容 image

Umpire2018 commented 6 months ago
  1. 请查看浏览器控制台是否有提示。
  2. 请查看各容器中的日志,查看有无报错,若不确定可将日志上传到此处。
xxll88 commented 6 months ago

ToolServerManager: [2023-12-14 01:53:50 +0000] [1] [INFO] Starting gunicorn 21.2.0 [2023-12-14 01:53:50 +0000] [1] [INFO] Listening at: http://0.0.0.0:8080 (1) [2023-12-14 01:53:50 +0000] [1] [INFO] Using worker: uvicorn.workers.UvicornWorker [2023-12-14 01:53:50 +0000] [7] [INFO] Booting worker with pid: 7 [2023-12-14 01:53:50 +0000] [8] [INFO] Booting worker with pid: 8 [2023-12-14 01:53:50 +0000] [7] [INFO] Database connected [2023-12-14 01:53:50 +0000] [7] [INFO] Docker client connected [2023-12-14 01:53:50 +0000] [8] [INFO] Database connected [2023-12-14 01:53:50 +0000] [8] [INFO] Docker client connected [2023-12-14 01:53:50 +0000] [7] [INFO] Started server process [7] [2023-12-14 01:53:50 +0000] [7] [INFO] Waiting for application startup. [2023-12-14 01:53:51 +0000] [8] [INFO] Started server process [8] [2023-12-14 01:53:51 +0000] [8] [INFO] Waiting for application startup. [2023-12-14 01:53:51 +0000] [7] [INFO] Nodes status checker started. [2023-12-14 01:53:51 +0000] [7] [INFO] Application startup complete. [2023-12-14 01:53:51 +0000] [8] [INFO] Nodes status checker started. [2023-12-14 01:53:51 +0000] [8] [INFO] Application startup complete. [2023-12-14 04:01:44 +0000] [1] [INFO] Handling signal: term [2023-12-14 04:01:44 +0000] [7] [INFO] Shutting down [2023-12-14 04:01:44 +0000] [8] [INFO] Shutting down [2023-12-14 04:01:44 +0000] [7] [INFO] Waiting for application shutdown. [2023-12-14 04:01:44 +0000] [7] [INFO] Application shutdown complete. [2023-12-14 04:01:44 +0000] [7] [INFO] Finished server process [7] [2023-12-14 04:01:44 +0000] [7] [INFO] Worker exiting (pid: 7) [2023-12-14 04:01:44 +0000] [8] [INFO] Waiting for application shutdown. [2023-12-14 04:01:44 +0000] [8] [INFO] Application shutdown complete. [2023-12-14 04:01:44 +0000] [8] [INFO] Finished server process [8] [2023-12-14 04:01:44 +0000] [8] [INFO] Worker exiting (pid: 8) [2023-12-14 04:01:45 +0000] [1] [INFO] Shutting down: Master [2023-12-14 04:02:08 +0000] [1] [INFO] Starting gunicorn 21.2.0 [2023-12-14 04:02:08 +0000] [1] [INFO] Listening at: http://0.0.0.0:8080 (1) [2023-12-14 04:02:08 +0000] [1] [INFO] Using worker: uvicorn.workers.UvicornWorker [2023-12-14 04:02:08 +0000] [7] [INFO] Booting worker with pid: 7 [2023-12-14 04:02:08 +0000] [8] [INFO] Booting worker with pid: 8 [2023-12-14 04:02:08 +0000] [7] [INFO] Database connected [2023-12-14 04:02:08 +0000] [7] [INFO] Docker client connected [2023-12-14 04:02:09 +0000] [8] [INFO] Database connected [2023-12-14 04:02:09 +0000] [7] [INFO] Started server process [7] [2023-12-14 04:02:09 +0000] [7] [INFO] Waiting for application startup. [2023-12-14 04:02:09 +0000] [8] [INFO] Docker client connected [2023-12-14 04:02:09 +0000] [7] [INFO] Nodes status checker started. [2023-12-14 04:02:09 +0000] [7] [INFO] Application startup complete. [2023-12-14 04:02:09 +0000] [8] [INFO] Started server process [8] [2023-12-14 04:02:09 +0000] [8] [INFO] Waiting for application startup. [2023-12-14 04:02:09 +0000] [8] [INFO] Nodes status checker started. [2023-12-14 04:02:09 +0000] [8] [INFO] Application startup complete.

xagent-ToolServerNode: INFO: Started server process [1] INFO: Waiting for application startup. Starting Docker: docker. INFO: Register env FileSystemEnv with 3 tools! WARNING: Bing API key is not provided, rollback to duckduckgo. INFO: Register env WebEnv with 2 tools! INFO: Register env PythonNotebook with 2 tools! INFO: Register tool shell_command_executor! INFO: Loaded 8 tools and 3 envs! INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:31942 (Press CTRL+C to quit) INFO: Shutting down INFO: Waiting for application shutdown. INFO: Application shutdown complete. INFO: Finished server process [1] INFO: Started server process [1] INFO: Waiting for application startup. Starting Docker: docker. INFO: Register env FileSystemEnv with 3 tools! WARNING: Bing API key is not provided, rollback to duckduckgo. INFO: Register env WebEnv with 2 tools! INFO: Register env PythonNotebook with 2 tools! INFO: Register tool shell_command_executor! INFO: Loaded 8 tools and 3 envs! INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:31942 (Press CTRL+C to quit)

xxll88 commented 6 months ago

能否提供1个交流群

Umpire2018 commented 6 months ago

能否提供1个交流群

Can you contact me here or discord? We can schedule a meeting to locate the problem.

Umpire2018 commented 6 months ago

@xxll88 请参考 此处 .