mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 09:13:48 +00:00
Send to chat (#77)
This commit is contained in:
1 parent
8aeeda5dca
commit
f8e06faea5
26 files changed
+384
-121
No files matched your search
@@ -16,7 +16,7 @@ public enum Event
|
||||
HAS_CHAT_UNSAVED_CHANGES,
|
||||
RESET_CHAT_STATE,
|
||||
|
||||
// Send assistant events:
|
||||
// Send events:
|
||||
SEND_TO_GRAMMAR_SPELLING_ASSISTANT,
|
||||
SEND_TO_ICON_FINDER_ASSISTANT,
|
||||
SEND_TO_REWRITE_ASSISTANT,
|
||||
@@ -24,4 +24,5 @@ public enum Event
|
||||
SEND_TO_AGENDA_ASSISTANT,
|
||||
SEND_TO_CODING_ASSISTANT,
|
||||
SEND_TO_TEXT_SUMMARIZER_ASSISTANT,
|
||||
SEND_TO_CHAT,
|
||||
}
|
||||
@@ -8,4 +8,9 @@ public static class JsRuntimeExtensions
|
||||
{
|
||||
await jsRuntime.InvokeVoidAsync("generateDiff", text1, text2, AssistantBase.ASSISTANT_RESULT_DIV_ID, AssistantBase.AFTER_RESULT_DIV_ID);
|
||||
}
|
||||
|
||||
public static async Task ClearDiv(this IJSRuntime jsRuntime, string divId)
|
||||
{
|
||||
await jsRuntime.InvokeVoidAsync("clearDiv", divId);
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,10 @@ public readonly record struct SendToButton() : IButtonData
|
||||
{
|
||||
public ButtonTypes Type => ButtonTypes.SEND_TO;
|
||||
|
||||
public Func<string> GetData { get; init; } = () => string.Empty;
|
||||
public Func<string> GetText { get; init; } = () => string.Empty;
|
||||
|
||||
public bool UseResultingContentBlockData { get; init; } = true;
|
||||
|
||||
public SendToAssistant Self { get; init; } = SendToAssistant.NONE;
|
||||
public SendTo Self { get; init; } = SendTo.NONE;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user