@threadplane/chatTypeAliasv0.3.4

AgentRecovery

What the adapter can safely offer after an unexpectedly closed stream:

  • retry — the request is known not to have been dispatched. Re-running it cannot duplicate server-side work.
  • check — the outcome is uncertain and the backend supports a read-only status check, so a caller may offer one.
  • none — the outcome is uncertain and nothing can verify it. Explain, and offer no action.
import type { AgentRecovery } from '@threadplane/chat';

Declaration

export type AgentRecovery = 'retry' | 'check' | 'none';