fix: fill a meaningful tool_index (#16504)
This commit is contained in:
@@ -83,7 +83,7 @@ class BaseFormatDetector(ABC):
|
|||||||
|
|
||||||
results.append(
|
results.append(
|
||||||
ToolCallItem(
|
ToolCallItem(
|
||||||
tool_index=-1, # Caller should update this based on the actual tools array called
|
tool_index=tool_indices.get(name, -1),
|
||||||
name=name,
|
name=name,
|
||||||
parameters=json.dumps(
|
parameters=json.dumps(
|
||||||
act.get("parameters") or act.get("arguments", {}),
|
act.get("parameters") or act.get("arguments", {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user