agentskit.js

RagErrorCodes

Auto-generated API reference for RagErrorCodes.

Variable: RagErrorCodes

const RagErrorCodes: object

Defined in: packages/rag/src/errors.ts:8

Error codes raised by @agentskit/rag loaders and rerankers. Kept local to the package (rather than in core's ErrorCodes) because they describe RAG ingestion/rerank I/O, not a core contract surface.

#Type Declaration

#AK_RAG_LOAD_FAILED

readonly AK_RAG_LOAD_FAILED: "AK_RAG_LOAD_FAILED" = 'AK_RAG_LOAD_FAILED'

A loader's HTTP fetch returned a non-OK status.

#AK_RAG_PEER_MISSING

readonly AK_RAG_PEER_MISSING: "AK_RAG_PEER_MISSING" = 'AK_RAG_PEER_MISSING'

An optional loader peer SDK (e.g. @aws-sdk/client-s3) is not installed.

#AK_RAG_RERANK_FAILED

readonly AK_RAG_RERANK_FAILED: "AK_RAG_RERANK_FAILED" = 'AK_RAG_RERANK_FAILED'

A reranker provider call failed.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs

Ask anything about AgentsKit. Answers come from the docs corpus via OpenRouter free-tier models. Rate limited per IP.