ToolRegistrySnapshot constructor

ToolRegistrySnapshot({
  1. Iterable<ToolDefinition>? tools,
  2. Int64? updatedAtMs,
})

Implementation

factory ToolRegistrySnapshot({
  $core.Iterable<ToolDefinition>? tools,
  $fixnum.Int64? updatedAtMs,
}) {
  final result = create();
  if (tools != null) result.tools.addAll(tools);
  if (updatedAtMs != null) result.updatedAtMs = updatedAtMs;
  return result;
}