Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
tool_call_history.h File Reference

In-memory ring buffer of recent tool calls for introspection. More...

#include <cstddef>
#include <mutex>
#include <shared_mutex>
#include <string>
#include <vector>
Include dependency graph for tool_call_history.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entropic::ToolCallRecord
 Lightweight record of a recent tool call for introspection. More...
 
class  entropic::ToolCallHistory
 Fixed-size ring buffer of recent tool calls. More...
 

Namespaces

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

Functions

std::string entropic::summarize_params (const std::string &args_json)
 Extract top-level JSON keys as a comma-separated summary.
 
std::string entropic::truncate_result (const std::string &text, size_t max_len)
 Truncate a string to max_len characters with "..." suffix.
 

Detailed Description

In-memory ring buffer of recent tool calls for introspection.

Stores ToolCallRecord entries in a fixed-capacity ring buffer. When full, new records overwrite the oldest. Thread-safe via shared_mutex (multiple concurrent readers, single writer).

This is NOT the v1.9.5 audit log. It is a lightweight diagnostic window for entropic.diagnose and entropic.inspect tools.

Version
1.9.12

Definition in file tool_call_history.h.