Skip to content

Commit 72ab0d7

Browse files
authored
fix(go): Register dynamic tools using sub-registrygers (#3753)
1 parent 9b31767 commit 72ab0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ai/prompt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func (p *prompt) Execute(ctx context.Context, opts ...PromptExecuteOption) (*Mod
208208
r = r.NewChild()
209209
}
210210
for _, t := range newTools {
211-
t.Register(p.registry)
211+
t.Register(r)
212212
}
213213
}
214214

0 commit comments

Comments
 (0)