toolCalls property

List<FunctionCallResponse> toolCalls
final

The calls a MessageType.toolCall message carries, or empty when it was built from text alone; ignored on any other type. An engine reads them through toolCallsOf (package:flutter_edge_ai/engine.dart), which also parses text for a message saved with text alone. One model turn may be several consecutive toolCall messages (genai writes one per call, and a streamed text call is recorded as it completes); an engine that replays calls merges such a run into one turn.

Implementation

final List<FunctionCallResponse> toolCalls;