Documentation
Table of Contents

Class AIResult<T>

Namespace
IntentSharp.Results
Assembly
IntentSharp.dll

A typed result. Inspect Success before using Value, or call GetValueOrThrow().

public sealed class AIResult<T> : AIResultBase

Type Parameters

T
Inheritance
object
AIResult<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
Extension Methods

Constructors

AIResult()

Creates an unsuccessful result with no value; object initializers set the rest.

Properties

Value

The verified value when Success is true; the type default otherwise.

Methods

GetValueOrDefault(T)

Returns the value on success, otherwise the supplied fallback.

GetValueOrThrow()

Returns the value or throws IntentSharpException with every issue listed.

ToString()

Returns a one-line summary: attempts, tokens and time on success, or the failure summary.