ToolCallingResult constructor
ToolCallingResult({})
Implementation
factory ToolCallingResult({
$core.String? text,
$core.Iterable<ToolCall>? toolCalls,
$core.Iterable<ToolResult>? toolResults,
$core.bool? isComplete,
$core.String? conversationId,
$core.int? iterationsUsed,
$core.String? errorMessage,
$core.int? errorCode,
$core.String? rawText,
$core.String? thinkingContent,
}) {
final result = create();
if (text != null) result.text = text;
if (toolCalls != null) result.toolCalls.addAll(toolCalls);
if (toolResults != null) result.toolResults.addAll(toolResults);
if (isComplete != null) result.isComplete = isComplete;
if (conversationId != null) result.conversationId = conversationId;
if (iterationsUsed != null) result.iterationsUsed = iterationsUsed;
if (errorMessage != null) result.errorMessage = errorMessage;
if (errorCode != null) result.errorCode = errorCode;
if (rawText != null) result.rawText = rawText;
if (thinkingContent != null) result.thinkingContent = thinkingContent;
return result;
}