How to return csv format for some tools #971
Unanswered
andrew-vdb
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I would suggest returning as string and doing the conversion in your tool. With the current spec, clients have poor to no support for non-json structured output. It's perfectly valid to use the "old" string-based content mechanism. It is not deprecated or legacy tool format. It gives you full control of what is sent to the model. For a csv returning tool I think it's the right choice. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
When the tool return complex type, by default it return in json format, how to return the data in csv format? Before i make each converter on each tool or is there centralised place to it like CallToolHandler?
Beta Was this translation helpful? Give feedback.
All reactions