Class AgencyPanelError

Thrown when a panel's chair fails: it threw, timed out or returned no text; and when the caller's abort lands after some seats answered and the quorum did not throw first (panel aborted: <reason>), with a chair or with chair: false. Carries the ledger. agency() also throws it, with no ledger, for a panel whose roster names a seat 'chair', the name the chair's record, approval requests and callbacks carry.

Hierarchy

  • Error
    • AgencyPanelError

Implements

Constructors

Properties

Constructors

Properties

seats?: PanelSeatRecord[]

Every seat's record.

seating?: SeatingRecord

The seating that served the run, when a pool seated it.

The quorum the panel reached before the chair ran.

usage?: {
    promptTokens: number;
    completionTokens: number;
    totalTokens: number;
    costUSD?: number;
    cacheReadTokens?: number;
    cacheCreationTokens?: number;
}

The usage of every call that returned before the failure.

Type declaration

  • promptTokens: number
  • completionTokens: number
  • totalTokens: number
  • Optional costUSD?: number
  • Optional cacheReadTokens?: number
  • Optional cacheCreationTokens?: number