2026-02-23 15:13:28 +00:00
|
|
|
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|
|
|
|
|
2026-02-24 16:21:50 +00:00
|
|
|
internal sealed class AssistantWebContentReader : AssistantComponentBase
|
2026-02-23 15:13:28 +00:00
|
|
|
{
|
2026-02-24 10:39:17 +00:00
|
|
|
public override AssistantComponentType Type => AssistantComponentType.WEB_CONTENT_READER;
|
2026-02-23 15:13:28 +00:00
|
|
|
public Dictionary<string, object> Props { get; set; } = new();
|
|
|
|
|
public List<IAssistantComponent> Children { get; set; } = new();
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
2026-02-24 16:21:50 +00:00
|
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Name));
|
|
|
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Name), value);
|
2026-02-23 15:13:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UserPrompt
|
|
|
|
|
{
|
2026-02-24 16:21:50 +00:00
|
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.UserPrompt));
|
|
|
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.UserPrompt), value);
|
2026-02-23 15:13:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2026-02-24 16:21:50 +00:00
|
|
|
|
|
|
|
|
public string Class
|
|
|
|
|
{
|
|
|
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Class));
|
|
|
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Class), value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Style
|
|
|
|
|
{
|
|
|
|
|
get => AssistantComponentPropHelper.ReadString(this.Props, nameof(this.Style));
|
|
|
|
|
set => AssistantComponentPropHelper.WriteString(this.Props, nameof(this.Style), value);
|
|
|
|
|
}
|
2026-02-23 15:13:28 +00:00
|
|
|
}
|