completedCalls property

List<ToolCall> get completedCalls

Get all aggregated ToolCalls that have a non-empty function.name.

This is often what you want when constructing a follow-up request with completed tool calls.

Implementation

List<ToolCall> get completedCalls =>
    _calls.values.where((c) => c.function.name.isNotEmpty).toList();