mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 04:57:59 +00:00
Reset and keep the web content URL in dynamic assistants
This commit is contained in:
2 files changed
+2
No files matched your search
@@ -140,6 +140,7 @@ else
|
|||||||
var webState = this.assistantState.WebContent[webContent.Name];
|
var webState = this.assistantState.WebContent[webContent.Name];
|
||||||
<div class="@webContent.Class" style="@GetOptionalStyle(webContent.Style)">
|
<div class="@webContent.Class" style="@GetOptionalStyle(webContent.Style)">
|
||||||
<ReadWebContent @bind-Content="@webState.Content"
|
<ReadWebContent @bind-Content="@webState.Content"
|
||||||
|
@bind-URL="@webState.URL"
|
||||||
ProviderSettings="@this.ProviderSettings"
|
ProviderSettings="@this.ProviderSettings"
|
||||||
@bind-AgentIsRunning="@webState.AgentIsRunning"
|
@bind-AgentIsRunning="@webState.AgentIsRunning"
|
||||||
@bind-Preselect="@webState.Preselect"
|
@bind-Preselect="@webState.Preselect"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ namespace AIStudio.Assistants.Dynamic;
|
|||||||
public sealed class WebContentState
|
public sealed class WebContentState
|
||||||
{
|
{
|
||||||
public string Content { get; set; } = string.Empty;
|
public string Content { get; set; } = string.Empty;
|
||||||
|
public string URL { get; set; } = string.Empty;
|
||||||
public bool Preselect { get; set; }
|
public bool Preselect { get; set; }
|
||||||
public bool PreselectContentCleanerAgent { get; set; }
|
public bool PreselectContentCleanerAgent { get; set; }
|
||||||
public bool AgentIsRunning { get; set; }
|
public bool AgentIsRunning { get; set; }
|
||||||
|
|||||||
Reference in new issue
Block a user