Skip to content

Commit 225aa45

Browse files
committed
Make params strongly types
1 parent b6668d2 commit 225aa45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/assistant-message/AssistantMessageParser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ export class AssistantMessageParser {
200200

201201
yield {
202202
type: "tool_use",
203-
name: toolName,
204-
id: accumulatedCall.id ?? "",
205-
input: accumulatedCall.function?.arguments,
203+
name: toolUse.name,
204+
id: toolUse.toolUseId ?? "",
205+
input: toolUse.params,
206206
}
207207
}
208208
}

0 commit comments

Comments
 (0)