@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
17 lines (16 loc) • 508 B
TypeScript
/**
* Shared internal types for the Anthropic-compatible proxy route.
*/
/** A deterministic upstream validation failure that must reach the caller. */
export type AnthropicInvalidRequestFailure = {
status: number;
body: string;
contentType?: string;
};
/** A credential failure deferred until peer and provider fallbacks are tried. */
export type DeferredClaudeAccountFailure = {
status: number;
message: string;
errorType: string;
responseHeaders?: Record<string, string>;
};