diff --git a/src/gptscript.ts b/src/gptscript.ts index c9f32bf..406f702 100644 --- a/src/gptscript.ts +++ b/src/gptscript.ts @@ -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