StructuredOutputApi class

Logical structured-output service contract. Model execution, retries, UI callbacks, and platform-specific JSON parser choices remain adapter-owned; this service describes portable prompt preparation, extraction/parsing, and validation semantics over generated messages.

Generation entry points (rac_structured_output_generate_proto / rac_structured_output_generate_stream_proto) are intentionally NOT modeled as service RPCs here — they are first-class C ABI calls that consume StructuredOutputRequest and emit StructuredOutputResult / StructuredOutputStreamEvent directly without a service descriptor. The cross-SDK contract (test_structured_output_service_proto_abi.cpp) pins the service surface to exactly three RPCs: PreparePrompt / Validate / Parse.

Constructors

StructuredOutputApi(RpcClient _client)

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
parse(ClientContext? ctx, StructuredOutputParseRequest request) Future<StructuredOutputResult>
preparePrompt(ClientContext? ctx, StructuredOutputRequest request) Future<StructuredOutputPromptResult>
toString() String
A string representation of this object.
inherited
validate(ClientContext? ctx, StructuredOutputValidationRequest request) Future<StructuredOutputValidation>

Operators

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