ChatToolMessage constructor
ChatToolMessage({})
Implementation
ChatToolMessage({
required String callId,
required String name,
required ChatToolStatus status,
required int super.turnId,
Object? input,
Object? output,
String kind = 'tool',
super.timestamp,
super.revision,
}) : super(
id: callId,
role: ChatMessageRole.tool,
text: name,
metadata: {
'toolCallId': callId,
'title': name,
'kind': kind,
'status': status == ChatToolStatus.inProgress
? 'in_progress'
: status.name,
'rawInput': ?input,
'rawOutput': ?output,
},
);