Entropic 2.14.3
Local-first agentic inference engine
Loading...
Searching...
No Matches
tool_base.h File Reference

Abstract base class for individual MCP tools. More...

#include <entropic/types/config.h>
#include <string>
Include dependency graph for tool_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entropic::ToolDefinition
 Parsed tool definition from JSON schema file. More...
 
class  entropic::ToolBase
 Abstract base class for individual MCP tools. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Functions

ToolDefinition entropic::load_tool_definition (const std::string &tool_name, const std::string &server_prefix, const std::string &data_dir)
 Load a tool definition from a JSON file.
 
std::string entropic::render_response_format (const std::string &output_schema_json)
 Render an outputSchema as the compact "Response format" text a model reads (gh#203).
 
std::string entropic::tool_error_json (const std::string &code, const std::string &message)
 A declared tool error: {"error": code, "message": message}.
 

Detailed Description

Abstract base class for individual MCP tools.

Each tool owns its definition (name, description, JSON schema) and implements execute(). Tools are registered with a ToolRegistry inside an MCPServerBase.

Version
2.14.0

Definition in file tool_base.h.