Reset and keep the web content URL in dynamic assistants

This commit is contained in:
Thorsten Sommer 2026-09-13 15:53:37 +02:00
parent 1b117f635f
commit 15400bc065
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 3 additions and 1 deletions

View File

@ -140,6 +140,7 @@ else
var webState = this.assistantState.WebContent[webContent.Name];
<div class="@webContent.Class" style="@GetOptionalStyle(webContent.Style)">
<ReadWebContent @bind-Content="@webState.Content"
@bind-URL="@webState.URL"
ProviderSettings="@this.ProviderSettings"
@bind-AgentIsRunning="@webState.AgentIsRunning"
@bind-Preselect="@webState.Preselect"

View File

@ -3,7 +3,8 @@ namespace AIStudio.Assistants.Dynamic;
public sealed class WebContentState
{
public string Content { get; set; } = string.Empty;
public string URL { get; set; } = string.Empty;
public bool Preselect { get; set; }
public bool PreselectContentCleanerAgent { get; set; }
public bool AgentIsRunning { get; set; }
}
}