#include <Pt/Mcp/ToolDeclaration.h>
Formats tool results as MCP text content. More...
Inherits ContentType.
Public Member Functions | |
| void | format (Decomposer *result, std::ostream &os) const override |
| Formats the decomposed result into an MCP content block. More... | |
Serializes the result using TextFormatter (compact YAML-like) and embeds it in a text content block.
|
overridevirtual |
Writes a JSON content object (e.g. {"type":"text","text":"..."}) to the output stream.
Implements ContentType.