mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 17:31:37 +00:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
|
|
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
||
|
|
|
||
|
|
public class AssistantWebContentReader : AssistantComponentBase
|
||
|
|
{
|
||
|
|
public override AssistantUiCompontentType Type => AssistantUiCompontentType.WEB_CONTENT_READER;
|
||
|
|
public Dictionary<string, object> Props { get; set; } = new();
|
||
|
|
public List<IAssistantComponent> Children { get; set; } = new();
|
||
|
|
|
||
|
|
public string Name
|
||
|
|
{
|
||
|
|
get => this.Props.TryGetValue(nameof(this.Name), out var v)
|
||
|
|
? v.ToString() ?? string.Empty
|
||
|
|
: string.Empty;
|
||
|
|
set => this.Props[nameof(this.Name)] = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public string UserPrompt
|
||
|
|
{
|
||
|
|
get => this.Props.TryGetValue(nameof(this.UserPrompt), out var v)
|
||
|
|
? v.ToString() ?? string.Empty
|
||
|
|
: string.Empty;
|
||
|
|
set => this.Props[nameof(this.UserPrompt)] = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public bool Preselect
|
||
|
|
{
|
||
|
|
get => this.Props.TryGetValue(nameof(this.Preselect), out var v) && v is true;
|
||
|
|
set => this.Props[nameof(this.Preselect)] = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public bool PreselectContentCleanerAgent
|
||
|
|
{
|
||
|
|
get => this.Props.TryGetValue(nameof(this.PreselectContentCleanerAgent), out var v) && v is true;
|
||
|
|
set => this.Props[nameof(this.PreselectContentCleanerAgent)] = value;
|
||
|
|
}
|
||
|
|
}
|