EdgeGenAIToolSchema.string constructor
A text value, optionally restricted to enumValues.
Implementation
factory EdgeGenAIToolSchema.string({
String? description,
List<String>? enumValues,
}) {
return EdgeGenAIToolSchema._({
'type': 'string',
'description': ?description,
if (enumValues != null && enumValues.isNotEmpty) 'enum': enumValues,
});
}