OpenAIResponsesInvocationBuilder class

Builds OpenAI Responses API invocations from Dartantic messages and options.

Responsible for:

  • Merging runtime options with defaults
  • Converting options to OpenAI-specific types
  • Mapping conversation history
  • Resolving server-side tool configuration

Constructors

OpenAIResponsesInvocationBuilder({required List<ChatMessage> messages, required OpenAIResponsesChatModelOptions? options, required OpenAIResponsesChatModelOptions defaultOptions, required JsonSchema? outputSchema})
Creates a new invocation builder.

Properties

defaultOptions OpenAIResponsesChatModelOptions
Default options from model configuration.
final
hashCode int
The hash code for this object.
no setterinherited
messages List<ChatMessage>
Messages to be sent in this request.
final
options OpenAIResponsesChatModelOptions?
Runtime options (may be null).
final
outputSchema → JsonSchema?
Optional output schema for typed responses.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() OpenAIResponsesInvocation
Builds the complete invocation.
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