toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    "name": name,
    "title": title,
    "description": description,
    if (inputSchema != null) "input_schema": inputSchema,
    if (outputSchema != null) "output_schema": outputSchema,
    if (labels != null) "labels": labels,
    if (annotations != null) "annotations": labels,
    "supports_tools": supportsTools,
  };
}