Skip to content

Interface: AgentErrorContext

Defined in: rine-ts-sdk/src/agent.ts:61

Properties

Property Type Description Defined in
message | DecryptedMessage | null The message being processed, or null if the error was in setup / stream connect. rine-ts-sdk/src/agent.ts:63
stage "schema" | "handler" | "lifecycle" Stage at which the error occurred. Note: "decrypt" is deliberately absent from this union — decryption failures surface on msg.decrypt_error and still reach the handler, so they never route to onError. "schema" fires when the defineAgent<T>({ schema }) validation step rejects a decrypted plaintext — the message is skipped and the loop keeps running. rine-ts-sdk/src/agent.ts:74