Return the AI-generated text

This commit is contained in:
Thorsten Sommer 2024-08-12 20:07:36 +02:00
parent 084ad7b695
commit 1dec7de24e
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -99,7 +99,7 @@ public abstract partial class AssistantBase : ComponentBase
return time;
}
protected async Task AddAIResponseAsync(DateTimeOffset time)
protected async Task<string> AddAIResponseAsync(DateTimeOffset time)
{
var aiText = new ContentText
{
@ -127,5 +127,9 @@ public abstract partial class AssistantBase : ComponentBase
this.isProcessing = false;
this.StateHasChanged();
// Return the AI response:
return aiText.Text;
}
}
}