content property

List<Content> get content

The returned content, either TextContent, ImageContent, AudioContent, ResourceLink or EmbeddedResource.

Implementation

List<Content> get content {
  final content = (_value['content'] as List?)?.cast<Content>();
  if (content == null) {
    throw ArgumentError('Missing content field in $CallToolResult');
  }
  return content;
}