Skip to content

AgentFailedEvent

junjo.hooks.AgentFailedEvent

Kind: Class

SDK version: 0.69.0

Documentation channel: Stable release

AgentFailedEvent(agent_key: str, store_id: str, error: AgentExecutionError, state: agent_state.AgentStateSnapshot, application_store_id: str | None = None, application_state: BaseState | None = None, *, 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)

View source

Payload delivered after an admitted Agent execution fails.

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.

agent_key: str

View source

Application-owned stable key of the Agent that emitted this event.

store_id: str

View source

Identity of the private Agent runtime Store.

error: AgentExecutionError

View source

Execution exception delivered to this observer; callback failures do not replace the application error.

state: agent_state.AgentStateSnapshot

View source

Detached private Agent runtime state at this lifecycle point.

application_store_id: str | None = None

View source

Identity of the optional live application Store used by this execution.

application_state: BaseState | None = None

View source

Detached application-state checkpoint, when available.