ReasoningModelDiagnostic
Models & Types · AiDotNet.Agentic.Models.Connectors
One recorded edit a reasoning-model profile made to an outgoing chat request.
For Beginners
Think of this as a receipt line. If the library had to remove your “creativity” setting because the model you chose does not accept one, this is the note that says so. Collect these and you can always answer the question “was the request I configured the request that was actually sent?”
How It Works
A reasoning model rejects settings that ordinary chat models accept, so the request that leaves the process is not always the request the caller configured. Every such edit produces one of these records: which model was targeted, which profile matched it, which setting changed, and how. Nothing here carries a credential, an endpoint, or any prompt text — only the name of a setting and a short fixed explanation — so a diagnostic is safe to log, serialize, or show to a user.
This is the piece the reference implementation has no equivalent of. Upstream builds a different parameter
dictionary for reasoning models and never records that temperature and top_p were omitted, so a
run configured with a temperature and pointed at an o-series model produces results the configuration cannot
explain. Here the omission is a first-class, inspectable fact.
Constructors
| Constructor | Summary |
|---|---|
ReasoningModelDiagnostic(string modelId, string profileName, ReasoningRequestParameter parameter, ReasoningParameterAdjustment adjustment, string message) |
Initializes a diagnostic describing one request adjustment. |
Properties
| Property | Summary |
|---|---|
ReasoningParameterAdjustment Adjustment { get; } |
Gets how the setting was changed. |
ReasoningRequestParameter Parameter { get; } |
Gets the request setting that was changed. |
string Key { get; } |
Gets the stable key identifying this kind of adjustment, used to collapse repeats. |
string Message { get; } |
Gets the short explanation; empty when none was supplied. |
string ModelId { get; } |
Gets the model the request was aimed at. |
string ProfileName { get; } |
Gets the name of the reasoning profile that matched the model. |
Methods
| Method | Summary |
|---|---|
string ToString() |
Returns a description that carries no prompt text, endpoint, or credential. |
Fields
| Field | Summary |
|---|---|
int MaxMessageLength |
The longest message retained; a longer explanation is truncated to this many characters. |