fabro/lib/packages/fabro-api-client/src/models/agent-error-data.ts
Bryan Helmkamp fa6902c448
Describe StageProjection.agent on the API as pebble's own types
AgentSessionProjection and the schemas nested in it reuse pebble's types
through with_replacement; the AgentSession prefix marks the projection's
own types where fabro already has a schema of that name, and pebble's
event-level types keep their names. The round-trip test builds a
projection over a scripted stream, validates it against the spec with the
spec as the root document, checks every serialized key is declared, and
validates every enum variant this build knows. The TypeScript client is
regenerated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 07:25:38 -06:00

64 lines
1.8 KiB
TypeScript
Generated

/* tslint:disable */
/* eslint-disable */
/**
* Fabro Run API
* HTTP API for managing Fabro workflow run executions.
*
* The version of the OpenAPI document: 0.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { AgentErrorKind } from './agent-error-kind';
// May contain unused imports in some cases
// @ts-ignore
import type { LlmRetryClassification } from './llm-retry-classification';
/**
* A failure as the coding agent\'s event stream carries it: category, safe message, retry advice, provider and model context, and the rendered source chain. Never a raw provider response body.
*/
export interface AgentErrorData {
'kind': AgentErrorKind;
/**
* The whole failure rendered for a person, cause included.
*/
'message': string;
/**
* The model-layer category, when a model call failed.
*/
'llm_kind'?: string;
/**
* Whether repeating the same model call is safe, when a model call failed.
*/
'retry'?: LlmRetryClassification;
/**
* The provider that produced the failure, when one was selected.
*/
'provider'?: string;
/**
* The model that produced the failure, when one was selected.
*/
'model'?: string;
/**
* The HTTP status, when the failure came from an HTTP response.
*/
'status'?: number;
/**
* The provider\'s own error code, as reported on the wire.
*/
'provider_code'?: string;
/**
* The provider\'s advised wait in milliseconds.
*/
'provider_retry_after_millis'?: number;
/**
* The text of each cause below `message`, outermost first.
*/
'source_chain'?: Array<string>;
}