mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:39:46 +00:00
Allow adding issues to the issue list
This commit is contained in:
parent
6684a310d0
commit
e998e9740f
@ -189,6 +189,18 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
|
|||||||
/// the user has stopped typing or selecting options.
|
/// the user has stopped typing or selecting options.
|
||||||
/// </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()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user