Improved how the AI remembers its earlier tool calls (#1185)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Peer HogeterpandThorsten Sommer authored and GitHub committed 2026-11-12 19:57:28 +01:00
1 parent 0885862150
commit 382db4b8d0
22 files changed
+1323 -24

No files matched your search

@@ -241,6 +241,7 @@ public sealed class ToolCallingLoop(ILogger<ToolCallingLoop> logger) : IToolCall
context.ChatThread.RequireDataSecurity(outcome.RequiredDataSecurity);
context.ChatThread.RequireOutboundDataRestriction(outcome.RequiredOutboundDataRestriction);
context.ChatThread.RuntimeWebAddressesFromTools.UnionWith(outcome.ReturnedWebAddresses);
context.CurrentAssistantContent?.KeepWebAddressesFromTools(outcome.ReturnedWebAddresses);
toolSources.MergeSources(outcome.Sources);
toolPassages.MergePassages(outcome.Passages);
await context.AddToolInvocationAsync(outcome.Trace);