ToolContentSpec constructor
ToolContentSpec({
- required List<
ToolContentType> types, - bool stream = false,
- Map<
String, dynamic> ? schema,
Implementation
ToolContentSpec({required List<ToolContentType> types, this.stream = false, this.schema})
: types = List<ToolContentType>.unmodifiable(types) {
if (types.isEmpty) {
throw ArgumentError.value(types, "types", "At least one content type is required");
}
}