mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 12:13:48 +00:00
Let tools tailor what they offer to each request
This commit is contained in:
12 files changed
+452
-126
No files matched your search
@@ -1314,11 +1314,16 @@ public abstract class BaseProvider : IProvider, ISecretId
|
||||
{
|
||||
var providerSettings = this.CreateSettingsProvider(chatModel);
|
||||
var runnableTools = await toolRegistry.GetRunnableToolsAsync(
|
||||
providerSettings,
|
||||
chatThread.RuntimeComponent,
|
||||
new ToolResolutionContext
|
||||
{
|
||||
Provider = providerSettings,
|
||||
Component = chatThread.RuntimeComponent,
|
||||
ProviderConfidence = this.Provider.GetConfidence(settingsManager).Level,
|
||||
ChatThread = chatThread,
|
||||
},
|
||||
chatThread.RuntimeSelectedToolIds,
|
||||
this.Provider.GetConfidence(settingsManager).Level,
|
||||
chatThread.MayRunTools(settingsManager));
|
||||
chatThread.MayRunTools(settingsManager),
|
||||
token);
|
||||
|
||||
systemPrompt = new TextMessage
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user