requestedSchema property
ObjectSchema
get
requestedSchema
A JSON schema that describes the expected response.
The content may only consist of a flat object (no nested maps or lists)
with primitive values (String
, num
, bool
, enum
).
You can use validateRequestedSchema to validate that a schema conforms to these limitations.
Implementation
ObjectSchema get requestedSchema {
final requestedSchema = _value['requestedSchema'] as ObjectSchema?;
if (requestedSchema == null) {
throw ArgumentError(
'Missing required requestedSchema field in $ElicitRequest',
);
}
return requestedSchema;
}