mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 15: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
@@ -1,3 +1,4 @@
|
||||
using AIStudio.Chat;
|
||||
using AIStudio.Provider;
|
||||
using AIStudio.Settings;
|
||||
|
||||
@@ -7,6 +8,16 @@ public sealed class ToolExecutionContext
|
||||
{
|
||||
public required ToolDefinition Definition { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The chat the call was made in.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// For a tool which works with what the chat was set up with, such as Semantic Search with the
|
||||
/// data sources the user picked for it. A tool reads it; what the chat has to keep because of
|
||||
/// the result goes back through the ToolExecutionResult instead.
|
||||
/// </remarks>
|
||||
public required ChatThread ChatThread { get; init; }
|
||||
|
||||
public string ToolCallId { get; init; } = string.Empty;
|
||||
|
||||
public required SettingsManager SettingsManager { get; init; }
|
||||
|
||||
Reference in new issue
Block a user