ToolResult constructor

ToolResult({
  1. String? toolCallId,
  2. String? name,
  3. String? resultJson,
  4. String? error,
  5. bool? success,
  6. Int64? startedAtMs,
  7. Int64? completedAtMs,
})

Implementation

factory ToolResult({
  $core.String? toolCallId,
  $core.String? name,
  $core.String? resultJson,
  $core.String? error,
  $core.bool? success,
  $fixnum.Int64? startedAtMs,
  $fixnum.Int64? completedAtMs,
}) {
  final result = create();
  if (toolCallId != null) result.toolCallId = toolCallId;
  if (name != null) result.name = name;
  if (resultJson != null) result.resultJson = resultJson;
  if (error != null) result.error = error;
  if (success != null) result.success = success;
  if (startedAtMs != null) result.startedAtMs = startedAtMs;
  if (completedAtMs != null) result.completedAtMs = completedAtMs;
  return result;
}