ChatInput class
The ChatInput class of Novior.MentorAgent.Abstractions.Components. Part of the Novior.MentorAgent.Abstractions package.
On this page
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Components. Package: Novior.MentorAgent.Abstractions.
public class ChatInput : ComponentBase, IAsyncDisposable
dotnet add package Novior.MentorAgent.AbstractionsConstructors
Section titled “Constructors”public ChatInput()
Properties
Section titled “Properties”Disabled
Section titled “Disabled”public bool Disabled { get; set; }
OnSend
Section titled “OnSend”public EventCallback<MentorUserMessage> OnSend { get; set; }
Placeholder
Section titled “Placeholder”public string? Placeholder { get; set; }
Methods
Section titled “Methods”DisposeAsync
Section titled “DisposeAsync”public ValueTask DisposeAsync()
OnDragStateChanged
Section titled “OnDragStateChanged”public Task OnDragStateChanged(bool dragging)
OnFilesPending
Section titled “OnFilesPending”public Task OnFilesPending()
Called from JS when images were pasted or dropped; pulls each blob over a stream reference.
OnUrlDropped
Section titled “OnUrlDropped”public Task OnUrlDropped(string url)
Called from JS when an image is dragged in from another page (a URL, not a file).
OnVoiceError
Section titled “OnVoiceError”public void OnVoiceError(string error)
OnVoiceInterim
Section titled “OnVoiceInterim”public void OnVoiceInterim(string partial)
Live transcript while the user is still speaking (#17). Shown, never sent: the engine rewrites interim text as it hears more, so submitting it would send a half-heard question.
OnVoiceResult
Section titled “OnVoiceResult”public Task OnVoiceResult(string transcript)
OnVoiceStarted
Section titled “OnVoiceStarted”public void OnVoiceStarted()
OnVoiceStopped
Section titled “OnVoiceStopped”public void OnVoiceStopped()
