Allow adding issues to the issue list

This commit is contained in:
Thorsten Sommer 2024-12-29 12:13:32 +01:00
parent 6684a310d0
commit e998e9740f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -189,6 +189,18 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
/// the user has stopped typing or selecting options.
/// </remarks>
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()
{