Skip to content

TOON content #25

@s-celles

Description

@s-celles

Hello,

I recently created ToonFormat.jl (see announcement) and wonder what is the most appropriate way to use ModelContextProtocol.jl with this format (instead of JSON).

Currently I'm doing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions