Documentation
Table of Contents

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
object
AIRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

AIRequest()

Creates a text request with no system instructions or messages, for the provider's default model, with an output ceiling of 4096 tokens.

Properties

Format

How the reply must be shaped. Default Text.

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

SchemaName

The schema's name, for providers that ask for one. Default "intentsharp_output".

SystemPrompt

The system instructions, or null for none.

Tags

Free-form tags carried through to logs and memory. Never sent to the provider.

Temperature

The sampling temperature, or null to send none.