toJson method

  1. @override
Map<String, dynamic> toJson()
override

Serializes this result to the multipart tool.v2 shape ({output, content?, metadata?} or {interrupt}). Used at the reflection boundary so the Dev UI can render tool results.

Implementation

@override
Map<String, dynamic> toJson() {
  return {'interrupt': data ?? true};
}