AnthropicMCPToolResult.fromJson constructor

AnthropicMCPToolResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AnthropicMCPToolResult.fromJson(Map<String, dynamic> json) =>
    AnthropicMCPToolResult(
      toolUseId: json['tool_use_id'] as String,
      isError: json['is_error'] as bool? ?? false,
      content: List<Map<String, dynamic>>.from(json['content'] as List),
    );