mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-29 05:39:48 +00:00
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using AIStudio.Chat;
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AIStudio.Assistants.EDI;
|
|
|
|
public partial class AssistantEDI : AssistantBaseCore
|
|
{
|
|
public override Tools.Components Component => Tools.Components.EDI_ASSISTANT;
|
|
|
|
protected override string Title => "EDI Server";
|
|
|
|
protected override string Description =>
|
|
"""
|
|
The EDI is the (E)xternal (D)ata AP(I) for AI Studio. The EDI acts as a contract between decentralized data
|
|
sources and AI Studio. The EDI is implemented by the data sources, allowing them to be integrated into AI
|
|
Studio later. This means that the data sources assume the server role and AI Studio assumes the client role
|
|
of the API. This approach serves to realize a Retrieval-Augmented Generation (RAG) process with external
|
|
data.
|
|
""";
|
|
|
|
protected override string SystemPrompt =>
|
|
$"""
|
|
|
|
""";
|
|
|
|
protected override IReadOnlyList<IButtonData> FooterButtons => [];
|
|
|
|
protected override string SubmitText => "Create the EDI server";
|
|
|
|
protected override Func<Task> SubmitAction => () => Task.CompletedTask;
|
|
|
|
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
|
|
{
|
|
SystemPrompt = SystemPrompts.DEFAULT,
|
|
};
|
|
|
|
protected override void ResetFrom()
|
|
{
|
|
}
|
|
|
|
protected override bool MightPreselectValues()
|
|
{
|
|
return false;
|
|
}
|
|
} |