Skip to content

StateChangedEvent

junjo.hooks.StateChangedEvent

Kind: Class

SDK version: 0.69.0

Documentation channel: Stable release

StateChangedEvent(store_id: str, store_name: str, action_name: str, patch: str, state: StateT, *, run_id: str, executable_definition_id: str, name: str, trace_id: str, span_id: str, executable_type: ExecutableType, executable_runtime_id: str, executable_structural_id: str, parent_executable_definition_id: str | None = None, parent_executable_runtime_id: str | None = None, parent_executable_structural_id: str | None = None, parent_executable_type: ExecutableType | None = None, enclosing_graph_structural_id: str)

View source

Payload delivered to Hooks.on_state_changed callbacks.

run_id: str

View source

Invocation identity carried by this lifecycle event; not a Studio evaluation run identifier.

executable_definition_id: str

View source

Definition identity of the executable that emitted this event.

name: str

View source

Display name of the executable that emitted this event.

trace_id: str

View source

Active OpenTelemetry trace identity for linking the callback to execution evidence.

span_id: str

View source

Active OpenTelemetry span identity associated with this lifecycle event.

executable_type: ExecutableType

View source

Kind of executable that emitted this event.

executable_runtime_id: str

View source

Per-invocation identity of the executable that emitted this event.

executable_structural_id: str

View source

Compiled structural identity of the executable that emitted this event.

parent_executable_definition_id: str | None = None

View source

Definition identity of the enclosing executable, when one exists.

parent_executable_runtime_id: str | None = None

View source

Invocation identity of the enclosing executable, when one exists.

parent_executable_structural_id: str | None = None

View source

Compiled structural identity of the enclosing executable, when one exists.

parent_executable_type: ExecutableType | None = None

View source

Kind of the enclosing executable, when one exists.

hook_name: str

View source

Return the public lifecycle hook name for this payload.

This is derived from the concrete event class name so callers can log the event type directly without each payload redefining its own string constant.

enclosing_graph_structural_id: str

View source

Structural identity of the compiled graph containing this executable.

store_id: str

View source

Identity of the application state store associated with this event.

store_name: str

View source

Display name of the state store whose action completed.

action_name: str

View source

Store action responsible for the recorded state change.

patch: str

View source

Serialized JSON Patch describing the change from the preceding state.

state: StateT

View source

Detached application state at this lifecycle point.