hasToolCalls property

bool get hasToolCalls

Whether this message contains any tool calls.

Implementation

bool get hasToolCalls => _parts.toolCalls.isNotEmpty;