Class AIRequest
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
Provider-neutral request. The client builds one for each attempt; providers translate it to their wire format.
public sealed class AIRequest
- Inheritance
-
objectAIRequest
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
- AIRequest()
Creates an empty text request.
Properties
- JsonSchema
The schema the reply must match when Format is JsonSchema; null otherwise.
- MaxOutputTokens
The output token ceiling for the reply. Default 4096.
- Messages
The chat messages, in order.
- Model
The model to use, or null for the provider's own: the request's Model, else the model the provider options give the provider for the request's role.
- Properties
Per-model options for the provider that receives the request: the
capabilitiesof its entry in the provider options, such astemperatureandstrictSchema; empty for a provider added in code. The built-in kinds readtemperature: falseas "send no sampling temperature" andstrictSchema: falseas "do not ask for strict schema output"; a provider of your own reads the names it knows.
- SchemaName
The schema's name, for providers that ask for one. Default "intentsharp_output".
- SystemPrompt
The system instructions, or null for none.
- Tags
The request's Tags, for your own records. The built-in providers never send them to the model service, and a provider of your own should not either.
- Temperature
The sampling temperature, or null to send none.