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

Tool: git commit -m "message", optionally git add -A first. More...

Inheritance diagram for entropic::GitCommitTool:
Collaboration diagram for entropic::GitCommitTool:

Public Member Functions

 GitCommitTool (ToolDefinition def, GitServer &server)
 Construct with definition and server ref.
 
ServerResponse execute (const std::string &args_json) override
 Run git commit with optional add-all.
 
- 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.
 
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: git commit -m "message", optionally git add -A first.

Definition at line 236 of file git.cpp.

Constructor & Destructor Documentation

◆ GitCommitTool()

entropic::GitCommitTool::GitCommitTool ( ToolDefinition  def,
GitServer server 
)
inline

Construct with definition and server ref.

Parameters
defTool definition.
serverOwning GitServer.

Definition at line 245 of file git.cpp.

Member Function Documentation

◆ execute()

ServerResponse entropic::GitCommitTool::execute ( const std::string &  args_json)
inlineoverridevirtual

Run git commit with optional add-all.

Parameters
args_jsonJSON with "message" and optional "add_all".
Returns
ServerResponse with commit output.

Implements entropic::ToolBase.

Definition at line 255 of file git.cpp.


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