Skip to content

Commit 0ec49d9

Browse files
committed
fix: use correct field name toolID
Signed-off-by: Donnie Adams <[email protected]>
1 parent cc95854 commit 0ec49d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gptscript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export class Run {
421421
if (out.done === undefined || !out.done) {
422422
this.chatState = JSON.stringify(out.state)
423423
this.state = RunState.Continue
424-
this.respondingToolId = out.toolId
424+
this.respondingToolId = out.toolID
425425
} else {
426426
this.state = RunState.Finished
427427
this.chatState = undefined
@@ -704,7 +704,7 @@ interface ChatState {
704704
state: string
705705
done: boolean
706706
content: string
707-
toolId: string
707+
toolID: string
708708
}
709709

710710
export type Arguments = string | Record<string, string>

0 commit comments

Comments
 (0)