ChatMessage.tool constructor

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

Type of message that is the response of calling a tool.

Implementation

factory ChatMessage.tool({
  required final String toolCallId,
  required final String content,
}) =>
    ToolChatMessage(
      toolCallId: toolCallId,
      content: content,
    );