ToolCallReader typedef

ToolCallReader = List<({Map<String, Object?> arguments, String name})> Function(String rawReply)

The tool calls in a raw LiteRT-LM reply: each call's name and arguments. Reading them is chat-template knowledge (a model can write a call as text), which the caller owns; the Flutter adapter passes core's parser.

Implementation

typedef ToolCallReader =
    List<({String name, Map<String, Object?> arguments})> Function(
      String rawReply,
    );