Skip to content

tool_calls problem? #25

@HPUhushicheng

Description

@HPUhushicheng

gitpod /workspace/Auto-Deep-Research (main) $ COMPLETION_MODEL=deepseek/deepseek-chat auto deep-research
port: 12346
port: 12346
Container 'deepresearch' is already running. Skipping creation.
⠋ Initializing...Browser Env
[2025-04-06 02:03:30]
Starting browser env...
⠋ Creating environment...
Browser Env
[2025-04-06 02:03:43]
Coming soon...

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ █████╗ ██╗ ██╗████████╗ ██████╗ █████╗ ██████╗ ███████╗███╗ ██╗████████╗ │
│ ██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝ │
│ ███████║██║ ██║ ██║ ██║ ██║███████║██║ ███╗█████╗ ██╔██╗ ██║ ██║ │
│ ██╔══██║██║ ██║ ██║ ██║ ██║██╔══██║██║ ██║██╔══╝ ██║╚██╗██║ ██║ │
│ ██║ ██║╚██████╔╝ ██║ ╚██████╔╝██║ ██║╚██████╔╝███████╗██║ ╚████║ ██║ │
│ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ │
│ ╔═══ 𝒞𝓇𝑒𝒶𝓉𝑒 𝒜𝑔𝑒𝓃𝓉𝒾𝒸 𝒜ℐ 𝓊𝓈𝒾𝓃𝑔 ℒ𝒶𝓃𝑔𝓊𝒶𝑔𝑒 ═══╗ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╔═════════════════════════════════════════════════╦═══════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Version ║ 0.1.0 ║
║ Author ║ AutoAgent Team@HKU ║
║ License ║ MIT ║
╚═════════════════════════════════════════════════╩═══════════════════════════════════════════════════════════════════════════════════════════════════════════╝
╭────────────────────────────────────────────────────────────────────── Important Notes ──────────────────────────────────────────────────────────────────────╮
│ │
│ • It's the simple yet powerful Open-Sourced Deep Research based on AutoAgent Framework. │
│ • Type ANY request to the agent to start the deep research, agents will automatically execute tools and return the results to you │
│ • @ to mention the agent to do specific tasks: │
│ • @Web_Surfer_Agent: specialize in browsing the web and extracting information │
│ • @File_Surfer_Agent: specialize in analyzing local files │
│ • @Coding_Agent: specialize in coding and debugging │
│ • @System_Triage_Agent: specialize in recieving the complex tasks and triage them into smaller tasks to be handled by other agents │
│ • @Upload_Files: upload files to the workplace of agents │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Tell me what you want to do (type "exit" to quit): 帮我写一篇花岗岩破裂的声发射阶段特征及裂纹不稳定扩展
状态识别的论文
Your request: 帮我写一篇花岗岩破裂的声发射阶段特征及裂纹不稳定扩展
状态识别的论文
@System Triage Agent will help you, be patient...
Traceback (most recent call last):
File "/workspace/.pyenv_mirror/user/3.12.9/bin/auto", line 8, in
sys.exit(cli())
^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/click/core.py", line 1161, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/Auto-Deep-Research/autoagent/cli.py", line 192, in deep_research
response = client.run(agent, messages, context_variables, debug=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/Auto-Deep-Research/autoagent/core.py", line 383, in run
completion = self.get_chat_completion(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/tenacity/init.py", line 338, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/tenacity/init.py", line 477, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/tenacity/init.py", line 378, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/tenacity/init.py", line 400, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.9/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/gitpod/.pyenv/versions/3.12.9/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/tenacity/init.py", line 480, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/workspace/Auto-Deep-Research/autoagent/core.py", line 162, in get_chat_completion
converted_tool_calls = [ChatCompletionMessageToolCall(**tool_call) for tool_call in converted_message[0]["tool_calls"]]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'tool_calls'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions