mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-09 16:53:48 +00:00
Let tool results restrict a chat to self-hosted providers
This commit is contained in:
9 files changed
+209
-52
No files matched your search
@@ -223,17 +223,19 @@ public sealed class ToolCallingLoop(ILogger<ToolCallingLoop> logger) : IToolCall
|
||||
}
|
||||
|
||||
toolCallCount++;
|
||||
var (toolContent, trace, requiredProviderConfidence, sources) = await context.ToolExecutor.ExecuteAsync(
|
||||
var (toolContent, trace, requiredProviderConfidence, requiredDataSecurity, sources) = await context.ToolExecutor.ExecuteAsync(
|
||||
call.CallId,
|
||||
call.ToolName,
|
||||
call.ArgumentsJson,
|
||||
context.RunnableTools,
|
||||
context.Provider,
|
||||
context.ChatThread,
|
||||
toolCallCount,
|
||||
token);
|
||||
|
||||
toolResultCharacterCount += toolContent.Length;
|
||||
context.ChatThread.RequireProviderConfidence(requiredProviderConfidence);
|
||||
context.ChatThread.RequireDataSecurity(requiredDataSecurity);
|
||||
toolSources.MergeSources(sources);
|
||||
await context.AddToolInvocationAsync(trace);
|
||||
|
||||
|
||||
Reference in new issue
Block a user