import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { InternChatErrorMetadata } from "./internchaterrormetadata.js"; /** * A failure after the response headers were sent. The chunk that carries it has `finish_reason: "error"`, then the final empty-`choices` chunk and `[DONE]` follow. Reasons here are `attachment_failed`, `busy`, `client_closed_request`, `interaction_not_pending`, `interaction_unknown`, `intern_unreachable`, `run_ended`, `stream_severed`, `timeout` or `turn_failed`. `run_ended` reports an ending the intern confirmed, such as a cancellation or a deadline, while `stream_severed` reports a connection lost without that confirmation. */ export type InternChatStreamError = { /** * The HTTP status this failure would have had before the stream opened. */ code: number; message: string; /** * Machine-readable detail for the failure. */ metadata: InternChatErrorMetadata; }; /** @internal */ export declare const InternChatStreamError$inboundSchema: z.ZodType; export declare function internChatStreamErrorFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=internchatstreamerror.d.ts.map