ToolResult constructor
ToolResult({})
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;
}