Table of Contents

Method Create

Namespace
MailFathom.AI.Chat
Assembly
MailFathom.AI.dll

Create(ChatEndpoint, int, float?, float?, string?, int, int, TimeSpan)

Builds a plan, refusing a declaration no request could be made from.

public static ChatGenerationPlan Create(ChatEndpoint endpoint, int maximumOutputTokens, float? temperature, float? topP, string? reasoningEffort, int maximumMessagesPerRequest, int maximumRequestCharacters, TimeSpan requestTimeout)

Parameters

endpoint ChatEndpoint

The endpoint every request is sent to.

maximumOutputTokens int

The greatest number of tokens one answer may occupy.

temperature float?

The sampling temperature, or null for the model's own default.

topP float?

The nucleus-sampling threshold, or null for the model's own default.

reasoningEffort string

The reasoning effort every call states, or null to send none.

maximumMessagesPerRequest int

The greatest number of turns one request carries.

maximumRequestCharacters int

The greatest number of characters those turns may add up to.

requestTimeout TimeSpan

The time one request may take.

Returns

ChatGenerationPlan

The plan.

Exceptions

ArgumentNullException

Thrown when endpoint is null.

ArgumentException

Thrown when the endpoint declares a blank alias or a blank routed model name.

ArgumentOutOfRangeException

Thrown when a bound is not positive, a sampling parameter is outside the range every provider accepts, or the endpoint's API or the reasoning effort names no declared value.