Snapshot Hook Data • AI Agent SDK
SnapshotHookData: Data captured at LLM call boundary for exact snapshot.
SnapshotHookData
Defined in the manager module.
AI Agent
Data captured at LLM call boundary for exact snapshot.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph TD
event["Event Trigger"] --> hook["Hook: SnapshotHookData"]
hook --> decision{"Decision"}
decision -- "Allow" --> proc["Process"]
decision -- "Deny" --> block["Block"]
style hook fill:#189AB4,color:#fff
style event fill:#8B0000,color:#fff
style proc fill:#8B0000,color:#fff
style block fill:#8B0000,color:#fffProperties
ResponseField
strNo description available.
ResponseField
ListNo description available.
ResponseField
ListNo description available.
ResponseField
strNo description available.
ResponseField
strNo description available.
ResponseField
Optional[ContextLedger]No description available.
ResponseField
Optional[BudgetAllocation]No description available.
Internal & Generic Methods
- to_dict: Generic utility method.
Source
View on GitHubpraisonaiagents/context/manager.py at line 204