TOON content
Hello,
I recently created [ToonFormat.jl](https://github.com/toon-format/ToonFormat.jl) (see [announcement](https://discourse.julialang.org/t/ann-toonformat-jl-token-oriented-object-notation-for-julia/134748)) and wonder what is the most appropriate way to use ModelContextProtocol.jl with this format (instead of JSON).
Currently I'm doing
```julia
if format == "toon"
toon_output = format_as_toon(results, "Components")
return TextContent(text = toon_output)
else
summary = format_component_list(results)
return success_response(summary, Dict{String,Any}("components" => results, "count" => length(results)))
end
```
Is there a better way of doing? sending MINE type or other suggestions.
Kind regards
0 条评论