Skip to content

tools使用报错 #208

@sparkssssssss

Description

@sparkssssssss

日志如下
2026-03-07T03:43:04.446509Z INFO microclaw::channels::telegram: Processing message from xxxx in chat xxxx: 今天上海的天气
2026-03-07T03:43:04.446773Z INFO microclaw::agent_engine: Agent request started chat_id=xxxx channel="telegram" chat_type="private" has_override_prompt=false has_image=false
2026-03-07T03:43:04.447333Z INFO microclaw::agent_engine: Session resumed chat_id=xxxx session_messages=40 new_messages=1
2026-03-07T03:43:04.448215Z INFO microclaw::agent_engine: Archived conversation (41 messages) to ./microclaw.data/runtime/groups/telegram/xxxx/conversations/20260307-034304.md
2026-03-07T03:43:15.344863Z INFO microclaw::agent_engine: Context compacted chat_id=xxxx messages_before=41 messages_after=21
2026-03-07T03:43:17.647409Z INFO microclaw::agent_engine: Agent iteration completed chat_id=xxxx iteration=1 stop_reason="tool_use" input_tokens=0 output_tokens=0
2026-03-07T03:43:17.647456Z INFO microclaw::agent_engine: Executing tool chat_id=xxxx tool= iteration=1
2026-03-07T03:43:17.647504Z WARN microclaw::agent_engine: Tool execution failed: Unknown tool: chat_id=xxxx tool= iteration=1 error_type=Some("unknown_tool")
2026-03-07T03:43:19.125592Z INFO microclaw::agent_engine: Agent iteration completed chat_id=xxxx iteration=2 stop_reason="tool_use" input_tokens=0 output_tokens=0
2026-03-07T03:43:19.125657Z INFO microclaw::agent_engine: Executing tool chat_id=xxxx tool=web_fetch iteration=2
2026-03-07T03:43:26.944762Z INFO microclaw::agent_engine: Agent iteration completed chat_id=xxxx iteration=3 stop_reason="end_turn" input_tokens=0 output_tokens=0
2026-03-07T03:43:26.981347Z INFO microclaw::agent_engine: Agent request completed chat_id=xxxx channel="telegram" iterations=3 duration_ms=22534 response_len=233
2026-03-07T03:45:51.169182Z INFO microclaw::channels::telegram: Processing message from xxx in chat xxxx: 美国 伊朗 战争 最新情况
2026-03-07T03:45:51.170254Z INFO microclaw::agent_engine: Agent request started chat_id=xxxx channel="telegram" chat_type="private" has_override_prompt=false has_image=false
2026-03-07T03:45:51.171777Z INFO microclaw::agent_engine: Session resumed chat_id=xxxx session_messages=26 new_messages=1
2026-03-07T03:45:57.080913Z INFO microclaw::agent_engine: Agent iteration completed chat_id=xxxx iteration=1 stop_reason="end_turn" input_tokens=0 output_tokens=0
2026-03-07T03:45:57.084069Z INFO microclaw::agent_engine: Agent request completed chat_id=xxxx channel="telegram" iterations=1 duration_ms=5913 response_len=635
2026-03-07T03:46:19.958682Z INFO microclaw::channels::telegram: Processing message from xxx in chat xxxx: 搜索一下最新的新闻
2026-03-07T03:46:19.958990Z INFO microclaw::agent_engine: Agent request started chat_id=xxxx channel="telegram" chat_type="private" has_override_prompt=false has_image=false
2026-03-07T03:46:19.959572Z INFO microclaw::agent_engine: Session resumed chat_id=xxxx session_messages=28 new_messages=1
2026-03-07T03:46:22.036945Z INFO microclaw::agent_engine: Agent iteration completed chat_id=xxxx iteration=1 stop_reason="tool_use" input_tokens=0 output_tokens=0
2026-03-07T03:46:22.036991Z INFO microclaw::agent_engine: Executing tool chat_id=xxxx tool= iteration=1
2026-03-07T03:46:22.037307Z WARN microclaw::agent_engine: Tool execution failed: Unknown tool: chat_id=xxxx tool= iteration=1 error_type=Some("unknown_tool")
2026-03-07T03:46:23.333759Z INFO microclaw::agent_engine: Agent iteration completed chat_id=xxxx iteration=2 stop_reason="tool_use" input_tokens=0 output_tokens=0
2026-03-07T03:46:23.333800Z INFO microclaw::agent_engine: Executing tool chat_id=xxxx tool=web_search iteration=2
2026-03-07T03:46:24.573260Z WARN microclaw::agent_engine: Tool execution failed: Search failed: HTTP 403 Forbidden chat_id=xxxx tool=web_search iteration=2 error_type=Some("tool_error")
2026-03-07T03:46:28.190040Z INFO microclaw::agent_engine: Agent iteration completed chat_id=xxxx iteration=3 stop_reason="end_turn" input_tokens=0 output_tokens=0
2026-03-07T03:46:28.193625Z INFO microclaw::agent_engine: Agent request completed chat_id=xxxx channel="telegram" iterations=3 duration_ms=8234 response_len=1098

tg对话回复如下
今天上海的天气是晴天,温度为 +9°C。

Execution note: some tool actions failed in this request (). Ask me to retry if needed.
Failed actions:

xxxx, [2026/3/7 11:46]
美国 伊朗 战争 最新情况

bot, [2026/3/7 11:46]
根据我获取的信息,美国与伊朗之间目前没有正式的战争状态。两国关系虽然紧张,但处于外交和经济制裁等非战争状态。最近的新闻显示,双方在核协议、制裁等问题上存在分歧,但没有爆发直接的军事冲突。

需要说明的是:

  1. 美国与伊拉克的战争已于2011年结束
  2. 美国与伊朗之间虽有冲突历史,但目前没有大规模军事战争
  3. 中东地区的局势会持续变化,具体详情建议关注可靠新闻源

如需更详细的信息,可以指定您关心的具体方面,我可以尝试提供更针对性的最新信息。

xxxx, [2026/3/7 11:46]
搜索一下最新的新闻

bot, [2026/3/7 11:47]
抱歉,我在尝试获取最新新闻时遇到了HTTP 403禁止访问的错误。这可能是由于网络限制或API访问问题导致的。

让我尝试另一种方式获取信息:

根据我现有的知识,美伊关系近期仍处于复杂紧张的状态,主要围绕以下几个方面:

  1. 核协议问题:伊朗继续推进核计划,美国及盟友对此表示关切
  2. 经济制裁:美国维持对伊朗的制裁措施
  3. 地区代理人冲突:双方在中东地区通过代理人进行间接对抗
  4. 外交接触:偶有间接谈判,但实质性进展有限

由于无法实时获取最新新闻,建议您查阅可靠的新闻来源以获得最准确的当前动态。如果您需要了解特定方面的信息,我可以尽力基于现有知识提供帮助。

Execution note: some tool actions failed in this request (, web_search). Ask me to retry if needed.
Failed actions:

  • input {"query":"美国 伊朗 关系 最新新闻"} failed: Unknown tool:
  • web_search input {"query":"美国 伊朗 关系 最新新闻"} failed: Search failed: HTTP 403 Forbidden

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