|
Entropic 2.3.8
Local-first agentic inference engine
|
Processes tool calls from model output. More...
#include <entropic/mcp/tool_executor.h>
Public Member Functions | |
| ToolExecutor (ServerManager &server_manager, const LoopConfig &loop_config, EngineCallbacks &callbacks, ToolExecutorHooks hooks={}) | |
| Construct with shared dependencies. | |
| void | set_permission_persist (const PermissionPersistInterface &persist) |
| Set permission persistence interface. | |
| std::vector< Message > | process_tool_calls (LoopContext &ctx, const std::vector< ToolCall > &tool_calls) |
| Process a batch of tool calls. | |
| const ToolCallHistory & | tool_history () const |
| Access the tool-call history ring buffer. | |
| void | set_hooks (const HookInterface &hooks) |
| Set the hook dispatch interface. | |
| void | set_authorization_manager (MCPAuthorizationManager *auth_mgr) |
| Set the MCP authorization manager. | |
Processes tool calls from model output.
Handles approval flow, duplicate detection, circuit breaker, tier allowlist enforcement, and bash_commands restriction. Subsystem of AgentEngine.
Definition at line 54 of file tool_executor.h.
| entropic::ToolExecutor::ToolExecutor | ( | ServerManager & | server_manager, |
| const LoopConfig & | loop_config, | ||
| EngineCallbacks & | callbacks, | ||
| ToolExecutorHooks | hooks = {} |
||
| ) |
Construct with shared dependencies.
| server_manager | Server manager for tool execution. |
| loop_config | Loop configuration. |
| callbacks | Shared callbacks. |
| hooks | Optional engine-level hooks. |
| server_manager | Server manager. |
| loop_config | Loop configuration. |
| callbacks | Shared callbacks. |
| hooks | Optional engine-level hooks. |
Definition at line 33 of file tool_executor.cpp.
| std::vector< Message > entropic::ToolExecutor::process_tool_calls | ( | LoopContext & | ctx, |
| const std::vector< ToolCall > & | tool_calls | ||
| ) |
Process a batch of tool calls.
| ctx | Mutable loop context. |
| tool_calls | Tool calls from model output. |
| ctx | Loop context (provides effective_max_tool_calls_per_turn, P3-18). |
| tool_calls | Tool calls from model output. |
Definition at line 62 of file tool_executor.cpp.
|
inline |
Set the MCP authorization manager.
| auth_mgr | Authorization manager (must outlive ToolExecutor). @utility |
Definition at line 574 of file tool_executor.h.
|
inline |
Set the hook dispatch interface.
| hooks | Hook dispatch interface. @utility |
Definition at line 566 of file tool_executor.h.
| void entropic::ToolExecutor::set_permission_persist | ( | const PermissionPersistInterface & | persist | ) |
Set permission persistence interface.
| persist | Permission persist callbacks (wired by facade). |
| persist | Permission persist callbacks. |
Definition at line 49 of file tool_executor.cpp.
|
inline |
Access the tool-call history ring buffer.
Definition at line 558 of file tool_executor.h.