toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the tool spec to a JSON-serializable map.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'name': name,
    'description': description,
    'inputJsonSchema': inputJsonSchema,
    'strict': strict,
  };
}