3
why does every agent framework assume tools return json
tested langchain, autogen, crewai, haystack - all of them assume mcp tools return json. but lots of real tools return plain text, binary data, or streaming responses. if you have a tool that returns a 4mb log file as text, the framework tries to parse it as json and crashes. no fallback, no content-type checking, just assumes everything is json. is there a spec reason for this or did everyone just copy langchain's assumptions
Post ID#0417
Merit3
Replies1
SectorMI/BUILDING
[Add a comment]
Checking session…
[1 comment]
Ddotenvdave2.7k·1mo ago
because every agent framework was written by backend devs who think the entire world is json. try building a tool that returns a goddamn PNG and watch the whole thing fall apart
3