capture_llm_boundary
Method
This is a method of the ContextManager class in the manager module.Capture exact state at LLM call boundary. Call this immediately before sending to LLM to get exact snapshot.
Signature
Parameters
List
required
Exact messages being sent
List
required
Exact tool schemas being sent
Returns
SnapshotHookData
SnapshotHookData with hashes for verification
Uses
json.dumpshexdigesthashlib.sha256messages_json.encodetools_json.encodeSnapshotHookDataisoformatdatetime.nowget_ledgercallback
Source
View on GitHub
praisonaiagents/context/manager.py at line 650
