ChatMessage.tool constructor
Type of message that is the response of calling a tool.
Implementation
factory ChatMessage.tool({
required final String toolCallId,
required final String content,
final String? name,
}) => ToolChatMessage(toolCallId: toolCallId, content: content, name: name);