RenderableMessage constructor

RenderableMessage({
  1. required String type,
  2. required String uuid,
  3. DateTime? timestamp,
  4. MessageData? message,
  5. String? subtype,
  6. String? hookLabel,
  7. int hookCount = 0,
  8. List<StopHookInfo> hookInfos = const [],
  9. List<String> hookErrors = const [],
  10. bool preventedContinuation = false,
  11. bool hasOutput = false,
  12. int? totalDurationMs,
  13. String? toolName,
  14. List<RenderableMessage>? messages,
  15. dynamic toolUseResult,
  16. AttachmentData? attachment,
  17. RenderableMessage? displayMessage,
})

Implementation

RenderableMessage({
  required this.type,
  required this.uuid,
  this.timestamp,
  this.message,
  this.subtype,
  this.hookLabel,
  this.hookCount = 0,
  this.hookInfos = const [],
  this.hookErrors = const [],
  this.preventedContinuation = false,
  this.hasOutput = false,
  this.totalDurationMs,
  this.toolName,
  this.messages,
  this.toolUseResult,
  this.attachment,
  this.displayMessage,
});