ToolCall constructor

ToolCall({
  1. String? id,
  2. String? name,
  3. String? argumentsJson,
  4. String? type,
  5. Int64? createdAtMs,
  6. String? rawText,
})

Implementation

factory ToolCall({
  $core.String? id,
  $core.String? name,
  $core.String? argumentsJson,
  $core.String? type,
  $fixnum.Int64? createdAtMs,
  $core.String? rawText,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (name != null) result.name = name;
  if (argumentsJson != null) result.argumentsJson = argumentsJson;
  if (type != null) result.type = type;
  if (createdAtMs != null) result.createdAtMs = createdAtMs;
  if (rawText != null) result.rawText = rawText;
  return result;
}