isToolUseStop function

bool isToolUseStop(
  1. String stopReason
)

Check if a stop reason indicates the model wants to use tools.

Implementation

bool isToolUseStop(String stopReason) => stopReason == 'tool_use';