Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行React Agent 报错 #23

Open
jackleibest opened this issue Feb 14, 2025 · 0 comments
Open

运行React Agent 报错 #23

jackleibest opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
C-bug This is a bug-report. Bug-fix PRs use `C-enhancement` instead. E-medium This is neither `E-easy` not `E-hard`. T-good-first-issue This issue is good for newcomers.

Comments

@jackleibest
Copy link

go run .
WARNING:(ast) sonic only supports go1.17~1.23, but your environment is not suitable
==================
[OnStart] {
  "Messages": [
    {
      "role": "system",
      "content": "# Character:\n你是一个帮助用户推荐餐厅和菜品的助手,根据用户的需要,查询餐厅信息并推荐,查询餐厅的菜品并推荐。\n"
    },
    {
      "role": "user",
      "content": "我在北京,给我推荐一些菜,需要有口味辣一点的菜,至少推荐有 2 家餐厅"
    }
  ],
  "Tools": [
    {
      "Name": "query_restaurants",
      "Desc": "Query restaurants"
    },
    {
      "Name": "query_dishes",
      "Desc": "查询一家餐厅有哪些菜品"
    }
  ],
  "ToolChoice": null,
  "Config": {
    "Model": "qwen-turbo",
    "MaxTokens": 0,
    "Temperature": 0,
    "TopP": 0,
    "Stop": null
  },
  "Extra": null
}
=========[OnEndStream]=========
==================
[OnStart] {
  "role": "assistant",
  "content": "",
  "tool_calls": [
    {
      "id": "",
      "type": "",
      "function": {}
    },
    {
      "index": 0,
      "id": "call_0c8a503719744d4aa89872",
      "type": "function",
      "function": {
        "name": "query_restaurants",
        "arguments": "{\"location\": \"北京\", \"topn\": 2}"
      }
    }
  ],
  "response_meta": {
    "finish_reason": "tool_calls",
    "usage": {
      "prompt_tokens": 339,
      "completion_tokens": 25,
      "total_tokens": 364
    }
  }
}
=========[OnError]=========
tool  not found in toolsNode indexes
=========[OnError]=========
failed to wait for tasks: execute node[tools] fail: default implementation: 'TransformByStream' got error, when try to call internal action, err:
tool  not found in toolsNode indexes
[ERROR] 2025-02-14 14:44:51 failed to stream: default implementation: 'StreamByTransform' got error, when try to call internal action, err:
failed to wait for tasks: execute node[tools] fail: default implementation: 'TransformByStream' got error, when try to call internal action, err:
tool  not found in toolsNode indexes
@BytePender BytePender added C-bug This is a bug-report. Bug-fix PRs use `C-enhancement` instead. E-medium This is neither `E-easy` not `E-hard`. T-good-first-issue This issue is good for newcomers. labels Feb 14, 2025
@kuhahalong kuhahalong self-assigned this Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug This is a bug-report. Bug-fix PRs use `C-enhancement` instead. E-medium This is neither `E-easy` not `E-hard`. T-good-first-issue This issue is good for newcomers.
Development

No branches or pull requests

3 participants