OpenAIResponsesOptionsMapper class

Utilities for mapping Dartantic options to OpenAI Responses API types.

This class consolidates all option conversion logic for the OpenAI Responses provider, keeping the chat model focused on streaming coordination.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

mergeMetadata(Map<String, dynamic>? base, Map<String, dynamic>? override) Map<String, dynamic>?
Merges base and override metadata maps.
resolveTextFormat(Schema? outputSchema, Map<String, dynamic>? responseFormat) → TextFormat?
Resolves text format from output schema or explicit response format.
toReasoningOptions({Map<String, dynamic>? raw, OpenAIReasoningEffort? effort, OpenAIReasoningSummary? summary}) → ReasoningConfig?
Converts Dartantic reasoning configuration to OpenAI ReasoningOptions.
toTruncation(Map<String, dynamic>? raw) → Truncation?
Converts truncation strategy map to OpenAI Truncation enum.