ToolCall constructor

ToolCall({
  1. required ToolCallId toolCallId,
  2. required String title,
  3. ToolKind? kind,
  4. ToolCallStatus? status,
  5. List<ToolCallContent>? content,
  6. List<ToolCallLocation>? locations,
  7. Object? rawInput,
  8. Object? rawOutput,
  9. AcpJsonMap? meta,
})

Implementation

ToolCall({
  required this.toolCallId,
  required this.title,
  this.kind,
  this.status,
  List<ToolCallContent>? content,
  List<ToolCallLocation>? locations,
  Object? rawInput,
  Object? rawOutput,
  AcpJsonMap? meta,
}) : content = content == null ? null : List.unmodifiable(content!),
     locations = locations == null ? null : List.unmodifiable(locations!),
     rawInput = rawInput == null ? null : deepFreezeAcpJson(rawInput!)!,
     rawOutput = rawOutput == null ? null : deepFreezeAcpJson(rawOutput!)!,
     meta = meta == null ? null : deepFreezeAcpJsonMap(meta!);