Skip to content

Commit 1dd9ee2

Browse files
authored
fix: Support 'args' key in response tool call argument extraction
2 parents 74206d0 + e8aa2d0 commit 1dd9ee2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/test-cases/checks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ export function checkResponseToolCalls(
875875
let actualArgs: Record<string, unknown>;
876876
const argsRaw =
877877
foundCall.arguments ||
878+
foundCall.args ||
878879
(foundCall.function as Record<string, unknown>)?.arguments;
879880

880881
if (typeof argsRaw === "string") {

0 commit comments

Comments
 (0)