MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent.Abstractions

ChatInput class

The ChatInput class of Novior.MentorAgent.Abstractions.Components. Part of the Novior.MentorAgent.Abstractions package.

View as Markdown
On this page

Namespace: Novior.MentorAgent.Abstractions.Components. Package: Novior.MentorAgent.Abstractions.

public class ChatInput : ComponentBase, IAsyncDisposable

Terminal
dotnet add package Novior.MentorAgent.Abstractions

public ChatInput()

public bool Disabled { get; set; }

public EventCallback<MentorUserMessage> OnSend { get; set; }

public string? Placeholder { get; set; }

public ValueTask DisposeAsync()

public Task OnDragStateChanged(bool dragging)

public Task OnFilesPending()

Called from JS when images were pasted or dropped; pulls each blob over a stream reference.

public Task OnUrlDropped(string url)

Called from JS when an image is dragged in from another page (a URL, not a file).

public void OnVoiceError(string error)

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.

public Task OnVoiceResult(string transcript)

public void OnVoiceStarted()

public void OnVoiceStopped()