@parcha/agentrun-dsl 0.1.0-beta.58 → 0.1.0-beta.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,8 +93,9 @@ export interface DecisionOutcome {
|
|
|
93
93
|
}
|
|
94
94
|
/** `outcome_unknown`: the request was sent and its outcome is not known (a 408, a 5xx, a connection lost after
|
|
95
95
|
* sending). It may have been answered and billed, so it is not sent again; the run escalates the decision as
|
|
96
|
-
* interrupted.
|
|
97
|
-
|
|
96
|
+
* interrupted. `payment_required`: the provider refused the key's account (a 402: out of credit), before any work, so
|
|
97
|
+
* nothing was billed. */
|
|
98
|
+
export type DecisionProviderErrorCode = "configuration" | "auth" | "payment_required" | "rate_limited" | "timeout" | "aborted" | "invalid_request" | "invalid_response" | "http" | "connection" | "outcome_unknown";
|
|
98
99
|
/** A provider's failure. Its message names what failed, never a key, a header, a request or response body. */
|
|
99
100
|
export declare class DecisionProviderError extends Error {
|
|
100
101
|
readonly code: DecisionProviderErrorCode;
|