CallToolResult.text constructor

CallToolResult.text(
  1. String text, {
  2. bool? isError,
})

Convenience for a single text result.

Implementation

factory CallToolResult.text(String text, {bool? isError}) => CallToolResult(
  content: [
    {'type': 'text', 'text': text},
  ],
  isError: isError,
);