载入中...
搜索中...
未找到
McpJson.hpp 文件参考
#include <Poco/Dynamic/Var.h>
#include <Poco/JSON/Array.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Stringifier.h>
#include <cstdio>
#include <sstream>
#include <string>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::dev
 

函数

std::string eve::dev::mcpStringify (const Poco::Dynamic::Var &value)
 Compact single-line JSON text for a newline-framed MCP payload.
 
std::string eve::dev::mcpJsonEscape (const std::string &value)
 Escape a raw string for embedding inside a JSON string literal.
 
std::string eve::dev::textContentResult (const std::string &text, bool isError=false)
 MCP tools/call result object carrying one text content item.
 
std::string eve::dev::imageContentResult (const std::string &base64Png, const std::string &mimeType, const std::string &caption)
 MCP tools/call result object carrying one image content item.