#include <Pt/Mcp/ToolDeclaration.h>
Formats a tool result as MCP content. More...
Inherited by TextContent.
Public Member Functions | |
| virtual void | format (Decomposer *result, std::ostream &os) const =0 |
| Formats the decomposed result into an MCP content block. More... | |
ContentType determines how a Decomposer result is serialized into an MCP content block (text, image, etc.).
|
pure virtual |
Writes a JSON content object (e.g. {"type":"text","text":"..."}) to the output stream.
Implemented in TextContent.