Skip to content

Type Alias: DocumentAnalysisErrorCode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DocumentAnalysisErrorCode

DocumentAnalysisErrorCode = "llm_answer_unparseable"

Defined in: src/types/documents.ts:80

The code of the 502 that POST /api/v1/documents/analyze answers.

llm_answer_unparseable — the LLM answered an analysis step with no readable JSON. The fault is upstream of the engine, so a retry can succeed. Read the code with errorBodyCode(error) from an InternalServerError.

const code: DocumentAnalysisErrorCode = 'llm_answer_unparseable';