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
-
objectAIResult<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
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.