mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-15 13:13: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
@@ -1,6 +1,7 @@
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
using AIStudio.Provider;
|
||||
using AIStudio.Settings.DataModel;
|
||||
|
||||
namespace AIStudio.Tools.ToolCallingSystem;
|
||||
|
||||
@@ -14,6 +15,17 @@ public sealed class ToolExecutionResult
|
||||
|
||||
public ConfidenceLevel RequiredProviderConfidence { get; init; } = ConfidenceLevel.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// The data security the chat has to keep from now on, because of what this result brings in.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The other axis next to RequiredProviderConfidence. A data source which may only be used with
|
||||
/// self-hosted providers says so here, and the chat then refuses every other provider from now
|
||||
/// on, see ChatThread.RequireDataSecurity. Left at NOT_SPECIFIED, the result says nothing about
|
||||
/// it, and the chat stays as it was.
|
||||
/// </remarks>
|
||||
public DataSourceSecurity RequiredDataSecurity { get; init; } = DataSourceSecurity.NOT_SPECIFIED;
|
||||
|
||||
public string ToModelContent()
|
||||
{
|
||||
if (this.JsonContent is not null)
|
||||
|
||||
Reference in new issue
Block a user