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

Tool for managing a persistent todo list. More...

Inheritance diagram for entropic::TodoTool:
Collaboration diagram for entropic::TodoTool:

Public Member Functions

 TodoTool (ToolDefinition def)
 Construct from tool definition.
 
ServerResponse execute (const std::string &args_json) override
 Execute todo action (add/update/remove).
 
std::string anchor_key (const std::string &args_json) const override
 Anchor key for todo state replacement.
 
- 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 MCPAccessLevel required_access_level () const
 Minimum access level required to execute this tool.
 

Additional Inherited Members

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

Detailed Description

Tool for managing a persistent todo list.

Definition at line 54 of file entropic_server.cpp.

Constructor & Destructor Documentation

◆ TodoTool()

entropic::TodoTool::TodoTool ( ToolDefinition  def)
inlineexplicit

Construct from tool definition.

Parameters
defTool definition loaded from entropic/todo.json.

Definition at line 62 of file entropic_server.cpp.

Member Function Documentation

◆ anchor_key()

std::string entropic::TodoTool::anchor_key ( const std::string &  args_json) const
overridevirtual

Anchor key for todo state replacement.

Anchor key for context replacement.

Parameters
args_jsonArguments (unused).
Returns
"todo_state" anchor key.
Parameters
args_jsonArguments (unused).
Returns
"todo_state".

Reimplemented from entropic::ToolBase.

Definition at line 116 of file entropic_server.cpp.

◆ execute()

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

Execute todo action (add/update/remove).

Execute the todo tool (add/update/remove) and emit directives.

Parameters
args_jsonJSON with "action", "content", "index", "status".
Returns
ServerResponse with todo state and directives.

Implements entropic::ToolBase.

Definition at line 181 of file entropic_server.cpp.


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