Skip to content

Commit 2712c84

Browse files
fix: update makeFunctionResponseEvent to simplify function response creation
1 parent af8cda5 commit 2712c84

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

core/test/termination/termination_conditions_test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ function makeFunctionResponseEvent(functionName: string): Event {
8282
content: {
8383
role: 'tool',
8484
parts: [
85-
createPartFromFunctionResponse({
86-
name: functionName,
87-
response: {result: 'ok'},
85+
createPartFromFunctionResponse(functionName, functionName, {
86+
result: 'ok',
8887
}),
8988
],
9089
},

0 commit comments

Comments
 (0)