cloudwego / cloudwego/eino

cannot concat ToolCalls with different tool id: 'call_357e63aa8d8643be8e6f8f0f' call_ab19881a9bc94938ab215902'

Open
#927 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
13k
Forks
1.1k
Avg merge
4h 6m
Merged PRs (30d)
41

Description

问题:模型返回两次工具调用,然后就异常了。
```
tool_calls {"role":"assistant","content":"","tool_calls":[{"index":0,"id":"call_a22ee75a08a943159beea799","type":"function","function":{"name":"ls","arguments":"{\"path\":\"./memory\"}"}}]}
tool_calls {"role":"assistant","content":"","tool_calls":[{"index":0,"id":"call_067d720493914ff392e709de","type":"function","function":{"name":"user_completed_work","arguments":"{\"weeks_ago\":0}"}}]}
```
```
cannot concat ToolCalls with different tool id: 'call_357e63aa8d8643be8e6f8f0f' call_ab19881a9bc94938ab215902'
```

似乎是尝试把他们合并导致的问题。

Contributor guide

Open the contributing guide

Research direction

Start by tracing the ToolCalls concatenation path from the two tool_calls payloads shown in the report. Reproduce the case with calls to ls and user_completed_work, then verify that tool calls with different IDs no longer produce the reported concat error and remain correctly represented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ai
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.