Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
audit_hook_context.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
14#pragma once
15
16#include <string>
17
18namespace entropic {
19
20class AuditLogger;
21
32 AuditLogger* logger = nullptr;
33 std::string session_id;
34 const std::string* caller_id = nullptr;
35 const int* delegation_depth = nullptr;
36 const int* iteration = nullptr;
37 const std::string* parent_conversation_id = nullptr;
38};
39
40struct AuditEntry;
41
50 const AuditHookContext& ctx);
51
52} // namespace entropic
JSONL audit logger for MCP tool calls.
Activate model on GPU (WARM → ACTIVE).
void populate_from_hook_context(AuditEntry &entry, const AuditHookContext &ctx)
Populate AuditEntry fields from AuditHookContext state.
A single audit log entry for one MCP tool call.
Definition audit_entry.h:30
Context passed to AuditLogger hook via user_data pointer.
AuditLogger * logger
Logger instance.
const int * iteration
Pointer to current iteration.
std::string session_id
Current session UUID.
const int * delegation_depth
Pointer to current depth.
const std::string * caller_id
Pointer to current identity name.
const std::string * parent_conversation_id
Pointer to parent conv ID.