ToolResource constructor

const ToolResource({
  1. required String uri,
  2. String? mimeType,
  3. String? text,
  4. Uint8List? blob,
})

Implementation

const ToolResource({required this.uri, this.mimeType, this.text, this.blob})
  : assert(
      (text == null) != (blob == null),
      'a resource carries text or bytes, one of them',
    );