SpendLimitExceededException

class SpendLimitExceededException(val configuredLimit: LLMConsumption, val consumedAtAbort: LLMConsumption) : ExecutionAbortException

Cumulative LLM consumption crossed the configured spend cap.

Constructors

Link copied to clipboard
constructor(configuredLimit: LLMConsumption, consumedAtAbort: LLMConsumption)

Properties

Link copied to clipboard
open override val abortResolvedId: String

Short identifier of the abort cause (e.g. "SpendLimitExceeded").

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

the cap as configured at session start.

Link copied to clipboard

the running cumulative observed when the cap was crossed.

Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard

Default mapping of an abort to an AnalyzedFailure for record-keeping.