Skip to content

DeepgramErrorParseResult

Namespace: Vercel.AI.Deepgram

public sealed class DeepgramErrorParseResult

Result of parsing a Deepgram error body.

Inheritance: object

View source

DeepgramErrorParseResult(bool, DeepgramErrorData?)

Section titled “DeepgramErrorParseResult(bool, DeepgramErrorData?)”
public DeepgramErrorParseResult(bool success, DeepgramErrorData? value)

Creates a parse result.

Parameters

Name Type Description
success bool
value DeepgramErrorData

View source

public DeepgramErrorData? RawValue { get; }

Same payload as Value.

Value: DeepgramErrorData

View source

public bool Success { get; }

True when err_code and err_msg were present.

Value: bool

View source

public DeepgramErrorData? Value { get; }

Parsed error.

Value: DeepgramErrorData

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product