mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
8 lines
323 B
C#
8 lines
323 B
C#
namespace AIStudio.Provider;
|
|
|
|
public sealed record TranscriptionResult(bool Success, string Text, string ErrorMessage = "")
|
|
{
|
|
public static TranscriptionResult FromText(string text) => new(true, text);
|
|
|
|
public static TranscriptionResult Failure(string errorMessage = "") => new(false, string.Empty, errorMessage);
|
|
} |