Get Last Snapshot Hook • AI Agent SDK

get_last_snapshot_hook: Get the last LLM boundary snapshot.

get_last_snapshot_hook

Method

</div>

This is a method of the ContextManager class in the manager module.

Get the last LLM boundary snapshot.

Diagram

Allow

Deny

Event Trigger

Hook: get_last_snapshot_hook

Decision

Process

Block

Signature

python
def get_last_snapshot_hook() -> Optional[SnapshotHookData]

Returns

ResponseField Optional[SnapshotHookData]

The result of the operation.

Source

View on GitHub

praisonaiagents/context/manager.py at line 643


Related Documentation