typedef ToolResultCallback = void Function( String toolName, Map<String, dynamic> parameters, String result, );