modelAnswerSchema top-level constant
The shape of every model tool's structuredContent — what
ModelSession.structured writes — as the outputSchema each tool
declares.
Implementation
const Map<String, Object?> modelAnswerSchema = <String, Object?>{
'type': 'object',
'properties': <String, Object?>{
'did': <String, Object?>{'type': 'boolean'},
'says': <String, Object?>{'type': 'string'},
'ids': <String, Object?>{
'type': 'array',
'items': <String, Object?>{'type': 'integer'},
},
'selection': <String, Object?>{
'type': 'object',
'properties': <String, Object?>{
'mode': <String, Object?>{'type': 'string'},
'objects': <String, Object?>{
'type': 'array',
'items': <String, Object?>{'type': 'integer'},
},
'level': <String, Object?>{'type': 'string'},
'elements': <String, Object?>{
'type': 'array',
'items': <String, Object?>{'type': 'integer'},
},
'object': <String, Object?>{'type': 'integer'},
},
'required': <String>['mode', 'objects'],
},
},
'required': <String>['did', 'says', 'ids', 'selection'],
};