Skip to main content

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

messages
List
required
Exact messages being sent
tools
List
required
Exact tool schemas being sent

Returns

Returns
SnapshotHookData
SnapshotHookData with hashes for verification

Uses

  • json.dumps
  • hexdigest
  • hashlib.sha256
  • messages_json.encode
  • tools_json.encode
  • SnapshotHookData
  • isoformat
  • datetime.now
  • get_ledger
  • callback

Source

View on GitHub

praisonaiagents/context/manager.py at line 650

Models Overview

LLM Configuration

Model Router

Model Failover