createAbortError (contract/errors.ts)

kimi-code · packages/agent-core-v2/src/llm-adapter/contract/errors.ts · typescript · MIT
ai

Defines and exports comprehensive error classes for LLM provider interactions in agent-core.

// Source: https://github.com/MoonshotAI/kimi-code | License: MIT | Copyright 2026 Moonshot AI
// Provided via justclaw.it.com; keep this notice with the code.
import { Error2, type Error2Options } from '#/_base/errors/errors';
import {
  appendThinkingEffortConfigHint,
  isAbortError,
  isContextOverflowStatusError,
  isImageFormatStatusError,
  isProviderOverloadStatusError,
  isRequestStructureStatusError,
  isRequestTooLargeStatusError,
  isToolExchangeAdjacencyStatusError,
  llmStatusErrorMessage,
  sanitizeStatusErrorMessage,
  type LlmErrorMessage,
  type LlmRemoteErrorMessage,
} from '#human/llm/errors';
import type { FinishReason } from '#human/llm/finish-reason';

export {
  isAbortError,
  parseRetryAfterMs,
  sanitizeStatusErrorMessage,
} from '#human/llm/errors';

export const

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key