2026-02-23 15:33:24 +00:00
|
|
|
namespace AIStudio.Tools.PluginSystem.Assistants.DataModel;
|
|
|
|
|
|
|
|
|
|
public class AssistantFileContentReader : AssistantComponentBase
|
|
|
|
|
{
|
2026-02-24 10:39:17 +00:00
|
|
|
public override AssistantComponentType Type => AssistantComponentType.FILE_CONTENT_READER;
|
2026-02-23 15:33:24 +00:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|