jsonSchema property
The schema sent to providers. A tool that declared no parameters is advertised as an object with no properties rather than omitted, because every provider requires a schema on each tool.
Implementation
Map<String, Object?> get jsonSchema => parameters.isEmpty
? <String, Object?>{
'type': 'object',
'properties': <String, Object?>{},
}
: DVJsonCodec.toJsonObject(parameters);