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
endpointChatEndpointThe endpoint every request is sent to.
maximumOutputTokensintThe greatest number of tokens one answer may occupy.
temperaturefloat?The sampling temperature, or null for the model's own default.
topPfloat?The nucleus-sampling threshold, or null for the model's own default.
reasoningEffortstringThe reasoning effort every call states, or null to send none.
maximumMessagesPerRequestintThe greatest number of turns one request carries.
maximumRequestCharactersintThe greatest number of characters those turns may add up to.
requestTimeoutTimeSpanThe time one request may take.
Returns
- ChatGenerationPlan
The plan.
Exceptions
- ArgumentNullException
Thrown when
endpointis 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.