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

A single audit log entry for one MCP tool call. More...

#include <entropic/storage/audit_entry.h>

Public Attributes

std::string caller_id
 Identity/tier name (e.g., "eng", "qa", "lead")
 
std::string tool_name
 Fully-qualified tool name (e.g., "filesystem.write_file")
 
std::string params_json
 Tool parameters as JSON string (never truncated)
 
std::string result_status
 "success", "error", or "timeout"
 
std::string result_content
 Tool result text (full, never truncated)
 
double elapsed_ms = 0.0
 Tool execution duration in milliseconds.
 
std::string directives_json
 Directives array as JSON string ("[]" if none)
 
int delegation_depth = 0
 Current delegation depth (0 = lead)
 
int iteration = 0
 Engine loop iteration number.
 
std::string parent_conversation_id
 Parent conversation ID (empty for lead)
 

Detailed Description

A single audit log entry for one MCP tool call.

Carries the per-call payload. The AuditLogger wraps this with session-level metadata (version, timestamp, session_id, sequence) when serializing to JSONL.

Version
1.9.5

Definition at line 30 of file audit_entry.h.

Member Data Documentation

◆ caller_id

std::string entropic::AuditEntry::caller_id

Identity/tier name (e.g., "eng", "qa", "lead")

Definition at line 31 of file audit_entry.h.

◆ delegation_depth

int entropic::AuditEntry::delegation_depth = 0

Current delegation depth (0 = lead)

Definition at line 38 of file audit_entry.h.

◆ directives_json

std::string entropic::AuditEntry::directives_json

Directives array as JSON string ("[]" if none)

Definition at line 37 of file audit_entry.h.

◆ elapsed_ms

double entropic::AuditEntry::elapsed_ms = 0.0

Tool execution duration in milliseconds.

Definition at line 36 of file audit_entry.h.

◆ iteration

int entropic::AuditEntry::iteration = 0

Engine loop iteration number.

Definition at line 39 of file audit_entry.h.

◆ params_json

std::string entropic::AuditEntry::params_json

Tool parameters as JSON string (never truncated)

Definition at line 33 of file audit_entry.h.

◆ parent_conversation_id

std::string entropic::AuditEntry::parent_conversation_id

Parent conversation ID (empty for lead)

Definition at line 40 of file audit_entry.h.

◆ result_content

std::string entropic::AuditEntry::result_content

Tool result text (full, never truncated)

Definition at line 35 of file audit_entry.h.

◆ result_status

std::string entropic::AuditEntry::result_status

"success", "error", or "timeout"

Definition at line 34 of file audit_entry.h.

◆ tool_name

std::string entropic::AuditEntry::tool_name

Fully-qualified tool name (e.g., "filesystem.write_file")

Definition at line 32 of file audit_entry.h.


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