Skip to content

Interface: ResearchSessionResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ResearchSessionResponse

Defined in: src/types/research.ts:126

Full research session state.

createdAt: string

Defined in: src/types/research.ts:170

When the session was created (ISO 8601).


cycles: ResearchCycleResultDto[]

Defined in: src/types/research.ts:136

Results from each completed cycle.


optional error?: string | null

Defined in: src/types/research.ts:134

Error message if status is Failed.


papers: PaperMetadataDto[]

Defined in: src/types/research.ts:143

Papers ingested so far, with full metadata (title, authors, DOI, URL).

This is the session’s actual corpus — totalPapersIngested is only its length. Empty against a backend that does not send it.


question: string

Defined in: src/types/research.ts:130

The research question.


sessionId: string

Defined in: src/types/research.ts:128

Session ID (UUID).


status: ResearchSessionStatusDto

Defined in: src/types/research.ts:132

Current session status.


totalContradictions: number

Defined in: src/types/research.ts:166

Total contradictions.


totalFindings: number

Defined in: src/types/research.ts:164

Total findings.


totalGaps: number

Defined in: src/types/research.ts:168

Total knowledge gaps.


totalPapersIngested: number

Defined in: src/types/research.ts:162

Total papers ingested.


totalPapersPooled: number

Defined in: src/types/research.ts:160

Total papers in the deduplicated retrieval pool, before ranking and the budget cut. Live during a run.


totalPapersRetrieved: number

Defined in: src/types/research.ts:155

Total papers KEPT, including by the cycle currently running: after ranking and the cut to the paper budget, so never above the budget. ResearchSessionResponse.totalPapersPooled is the pool before the cut.

Live throughout a run, unlike cycles[].papersRetrieved, which a cycle only publishes once it completes — minutes after the papers arrived. Deriving the figure from cycles alone therefore renders 0 over a visibly growing paper list for most of a session; read this instead, and keep cycles[].papersRetrieved for the per-cycle breakdown.


updatedAt: string

Defined in: src/types/research.ts:172

When the session was last updated (ISO 8601).