Skip to content

Commit

Permalink
fix: the parent call frame should be of "no" tool category
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Nov 2, 2024
1 parent b30db3c commit 5a1a7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gptscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ export class Run {
}
} else if ((f.type as string).startsWith("call")) {
f = f as CallFrame
if (!f.parentID && this.parentCallId === "") {
if (!f.parentID && this.parentCallId === "" && (f.toolCategory || ToolCategory.NoCategory) === ToolCategory.NoCategory) {
this.parentCallId = f.id
}
this.calls[f.id] = f
Expand Down

0 comments on commit 5a1a7aa

Please sign in to comment.