ToolCall.fromJson constructor
Deserializes from a JSON map produced by toJson.
Note that partialArguments is streaming scratch state and is never serialized, mirroring pi which strips the buffer before persisting.
Implementation
factory ToolCall.fromJson(Map<String, dynamic> json) => ToolCall(
id: json['id'] as String? ?? '',
name: json['name'] as String? ?? '',
arguments:
(json['arguments'] as Map<String, dynamic>?) ??
const <String, dynamic>{},
parentCallId: json['parentCallId'] as String?,
thoughtSignature: json['thoughtSignature'] as String?,
);