Entropic 2.11.1
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::WebSearchTool Class Reference

Tool for web search queries. More...

Inheritance diagram for entropic::WebSearchTool:
Collaboration diagram for entropic::WebSearchTool:

Public Member Functions

 WebSearchTool (ToolDefinition def)
 Construct from tool definition.
 
MCPAccessLevel required_access_level () const override
 Read-only tool — requires READ access.
 
ServerResponse execute (const std::string &args_json) override
 Execute web search (placeholder).
 
- Public Member Functions inherited from entropic::ToolBase
 ToolBase (ToolDefinition def)
 Construct with a pre-built definition.
 
const std::string & name () const
 Get the tool name.
 
const ToolDefinitiondefinition () const
 Get the full tool definition.
 
virtual std::string anchor_key (const std::string &args_json) const
 Generate anchor key for this tool result.
 

Additional Inherited Members

- Protected Attributes inherited from entropic::ToolBase
ToolDefinition definition_
 Tool definition.
 

Detailed Description

Tool for web search queries.

@dg_internal

Version
1.8.5

Definition at line 96 of file web.cpp.

Constructor & Destructor Documentation

◆ WebSearchTool()

entropic::WebSearchTool::WebSearchTool ( ToolDefinition  def)
inlineexplicit

Construct from tool definition.

Parameters
defTool definition loaded from web/web_search.json. @dg_internal
Version
1.8.5

Definition at line 104 of file web.cpp.

Member Function Documentation

◆ execute()

ServerResponse entropic::WebSearchTool::execute ( const std::string &  args_json)
overridevirtual

Execute web search (placeholder).

Parse search args and return placeholder.

Parameters
args_jsonJSON with "query" and optional "max_results".
Returns
ServerResponse with placeholder text. @dg_internal
Version
1.8.5
Parameters
args_jsonJSON with "query" and optional "max_results".
Returns
ServerResponse with placeholder result. @dg_internal
Version
1.8.5

Implements entropic::ToolBase.

Definition at line 135 of file web.cpp.

◆ required_access_level()

MCPAccessLevel entropic::WebSearchTool::required_access_level ( ) const
inlineoverridevirtual

Read-only tool — requires READ access.

Returns
MCPAccessLevel::READ, relaxing ToolBase's WRITE default because this tool has no side effects. @req REQ-MCP-011
Version
1.9.4

Reimplemented from entropic::ToolBase.

Definition at line 114 of file web.cpp.


The documentation for this class was generated from the following file: