addToolChatMessage method

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

Add a Tool response message to the history.

Implementation

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