MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isKimiError

Function isKimiError

packages/agent-core/src/errors/serialize.ts:31–33  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

29
30/** Type guard for KimiError. */
31export function isKimiError(error: unknown): error is KimiError {
32 return error instanceof KimiError;
33}
34
35/**
36 * Build a KimiErrorPayload directly from a code + message (no Error instance

Callers 12

fetchAuthMethod · 0.90
isMaxStepsExceededErrorFunction · 0.90
runStepLoopMethod · 0.90
compactionRoundMethod · 0.90
toKimiErrorPayloadFunction · 0.85
formatErrorMessageFunction · 0.85
undoLimitFromErrorFunction · 0.85
startGoalFunction · 0.85
pauseGoalFunction · 0.85
resumeGoalFunction · 0.85
cancelGoalFunction · 0.85
formatStartupErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected