ReasoningEffortLevelExtensions
Helpers & Utilities · AiDotNet.Agentic.Models.Connectors
Converts a ReasoningEffortLevel to and from the value providers use on the wire.
For Beginners
The library uses a readable name such as High; the provider wants the text
"high". These two helpers translate between the two, and treat “unspecified” as “do not send anything”.
How It Works
Providers spell the deliberation level as a lower-case string in a reasoning_effort field. Keeping the
conversion in one place means a connector never hand-writes the literal, and
Unspecified reliably maps to “omit the field” rather than to some string the
provider would reject.
Methods
| Method | Summary |
|---|---|
ReasoningEffortLevel ParseReasoningEffort(string value) |
Parses a provider wire value into an effort level. |
string ToWireValue(ReasoningEffortLevel level) |
Returns the wire value for an effort level, or null when no field should be sent. |