Message.toolCall constructor
Message.toolCall({
- required String text,
Implementation
factory Message.toolCall({required String text}) {
// Tool calls are from the model.
return Message(text: text, type: MessageType.toolCall, isUser: false);
}