Let tool results restrict a chat to self-hosted providers

This commit is contained in:
Thorsten Sommer committed 2026-09-24 15:07:39 +02:00
1 parent e9460a9cde
commit 4617aa5230
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; }