AIChatMessageServerToolResult constructor

const AIChatMessageServerToolResult({
  1. required String toolCallId,
  2. required Object? result,
  3. String? name,
  4. String id = '',
  5. int? index,
  6. bool isMergeable = true,
  7. Map<String, dynamic> providerData = const {},
})

Creates a server tool-result block.

Implementation

const AIChatMessageServerToolResult({
  required this.toolCallId,
  required this.result,
  this.name,
  super.id,
  super.index,
  super.isMergeable,
  super.providerData,
});