isToolReferenceWithName static method
Check if an object is a tool_reference with a tool_name.
Implementation
static bool isToolReferenceWithName(Map<String, dynamic>? obj) {
if (!isToolReferenceBlock(obj)) return false;
return obj!['tool_name'] is String;
}