@personaai/runtimev0.11.0

RuntimeHooks — @personaai/runtime

Generated field table for RuntimeHooks — do not edit

Generated from sdk/runtime/dist/typedoc.json — do not edit.

RuntimeHooks

Lifecycle hooks — the host application's voice inside the runtime's request handling. Plain async event listeners, not middleware: the runtime proceeds with sensible defaults when a hook is omitted, and a hook that wants to reject a run simply throws (the throw is caught and routed through the same sanitized error path as any other failure).

Source: types/hooks.ts:87

Interface

FieldTypeDescription
beforeRun?unknown— _ types/hooks.ts:88_
afterRun?unknown— _ types/hooks.ts:89_
onError?unknown— _ types/hooks.ts:90_
beforeToolCall?unknown— _ types/hooks.ts:93_
afterToolCall?unknown— _ types/hooks.ts:95_
beforeWorkflowNode?unknown— _ types/hooks.ts:97_
afterWorkflowNode?unknown— _ types/hooks.ts:99_
onFileUpload?unknown— _ types/hooks.ts:101_
onThreadCreate?unknown— _ types/hooks.ts:107_
onMemoryWrite?unknown— _ types/hooks.ts:109_
onVoiceSessionCreate?unknown— _ types/hooks.ts:111_