Class AIResponse
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
Provider-neutral response.
public sealed class AIResponse
- Inheritance
-
objectAIResponse
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
- AIResponse()
Creates an empty response with zero token usage, stamped with the current UTC time.
Properties
- Content
The reply text.
- CreatedAt
When the response object was created (UTC).
- IsRefusal
True when the provider declined to answer (safety refusal).
- IsTruncated
True when the reply was cut off by the output token limit.
- Model
The model that answered, as the provider reported it.
- Provider
The name of the provider that answered.
- RawJson
The raw provider JSON, kept for diagnostics. Not persisted by memory implementations.
- StopReason
Provider stop reason as reported (for example "end_turn", "stop", "max_tokens", "length", "refusal").
- Usage
The tokens this call used; zero when the provider reports none.