ParallelToolConfig.fromJson constructor

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

Implementation

factory ParallelToolConfig.fromJson(Map<String, dynamic> json) =>
    ParallelToolConfig(
      maxParallel: json['max_parallel'] as int? ?? 5,
      toolTimeout: json['tool_timeout_ms'] != null
          ? Duration(milliseconds: json['tool_timeout_ms'] as int)
          : null,
      continueOnError: json['continue_on_error'] as bool? ?? true,
    );