addToolChatMessage method

Future<void> addToolChatMessage({
  1. required String toolCallId,
  2. required String content,
})

Add a Tool response message to the history.

Implementation

Future<void> addToolChatMessage({
  required final String toolCallId,
  required final String content,
}) {
  return addChatMessage(
    ChatMessage.tool(
      toolCallId: toolCallId,
      content: content,
    ),
  );
}