dataclass
FallbackContext
beam_agents.core.agent.FallbackContext
FallbackContext(entity_key: 'bytes' = b'', seq: 'int' = 0, snapshot: 'bytes' = b'', kind: 'str' = 'timer', deadline_ms: 'int' = 0, fired_at_ms: 'int' = 0, pending_intent_ids: 'tuple[str, ...]' = ()) -> NoneDocstring
Passed to the HITL policy when a pending approval/result times out.
Carries the *expired continuation handle* — the suspended activation's
seq, the snapshot the agent persisted, the deadline_ms that
elapsed, and the pending_intent_ids nothing ever answered — plus
fired_at_ms, the timer's fire timestamp. kind says why the fallback
ran; only "timer" exists today.
Every time value the policy could need is carried here so the policy never reads a clock: it runs inside a timer callback whose bundle can be retried, and a retry must reach the same decision.
Members
7 declared on FallbackContext
Introspected from the class itself. A member with no docstring is shown as having none rather than described from its name.
deadline_ms
field
deadline_ms: int
No docstring.
entity_key
field
entity_key: bytes
No docstring.
fired_at_ms
field
fired_at_ms: int
No docstring.
kind
field
kind: str
No docstring.
pending_intent_ids
field
pending_intent_ids: tuple[str, ...]
No docstring.
seq
field
seq: int
No docstring.
snapshot
field
snapshot: bytes
No docstring.