mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-29 01:19:47 +00:00
Allow adding issues to the issue list
This commit is contained in:
parent
6684a310d0
commit
e998e9740f
@ -190,6 +190,18 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected virtual Task OnFormChange() => Task.CompletedTask;
|
protected virtual Task OnFormChange() => Task.CompletedTask;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Add an issue to the UI.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="issue">The issue to add.</param>
|
||||||
|
protected void AddInputIssue(string issue)
|
||||||
|
{
|
||||||
|
Array.Resize(ref this.inputIssues, this.inputIssues.Length + 1);
|
||||||
|
this.inputIssues[^1] = issue;
|
||||||
|
this.inputIsValid = false;
|
||||||
|
this.StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
protected void CreateChatThread()
|
protected void CreateChatThread()
|
||||||
{
|
{
|
||||||
this.chatThread = new()
|
this.chatThread = new()
|
||||||
|
Loading…
Reference in New Issue
Block a user