ChatMessage.tool constructor

ChatMessage.tool({
  1. required String toolCallId,
  2. required String content,
  3. String? name,
})

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);