Skip to content

StageResultStore

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/utils/stage-result-store.ts

Methods

MethodSignatureReturns
setParseResultsetParseResult(result: ParseResult)void
setChunkResultsetChunkResult(result: ChunkResult)void
setFeatureResultsetFeatureResult(result: FeatureResult)void
setAnalysisResultsetAnalysisResult(result: AnalysisResult)void
setSynthesisResultsetSynthesisResult(result: SynthesisResult)void
setStructureResultsetStructureResult(result: StructureResult)void
setPhaseResultsetPhaseResult(result: PhaseResult)void
setSessionResultsetSessionResult(result: SessionResult)void
setPlanResultsetPlanResult(result: PlanResult)void
setGenerationResultsetGenerationResult(result: GenerationResult)void
setVerificationResultsetVerificationResult(result: VerificationResult)void
setMetaDocResultsetMetaDocResult(result: MetaDocumentationResult)void
setKnowledgeReferenceStoresetKnowledgeReferenceStore(store: KnowledgeReferenceStore)void
getParseResultgetParseResult()`ParseResult
getChunkResultgetChunkResult()`ChunkResult
getFeatureResultgetFeatureResult()`FeatureResult
getAnalysisResultgetAnalysisResult()`AnalysisResult
getSynthesisResultgetSynthesisResult()`SynthesisResult
getStructureResultgetStructureResult()`StructureResult
getPhaseResultgetPhaseResult()`PhaseResult
getSessionResultgetSessionResult()`SessionResult
getPlanResultgetPlanResult()`PlanResult
getGenerationResultgetGenerationResult()`GenerationResult
getVerificationResultgetVerificationResult()`VerificationResult
getMetaDocResultgetMetaDocResult()`MetaDocumentationResult
getKnowledgeReferenceStoregetKnowledgeReferenceStore()`KnowledgeReferenceStore
getKnowledgeReferencegetKnowledgeReference(category: MetaKnowledgeCategory)`MetaCategoryReference
getChunkAnalysisgetChunkAnalysis(chunkId: string)`ChunkAnalysis
getChunkAnalysesgetChunkAnalyses()ChunkAnalysis[]
getChunksForFeaturegetChunksForFeature(featureId: string)string[]
getFeaturesForChunkgetFeaturesForChunk(chunkId: string)string[]
getChunkByIdgetChunkById(chunkId: string)`Chunk
getFeatureByIdgetFeatureById(featureId: string)`UserFeature
getEntitiesForChunkgetEntitiesForChunk(chunkId: string)Entity[]
clearclear()void
getMemoryEstimategetMemoryEstimate()number

Where it refuses work

  • StageResultStore stops the work with an early return when obj === undefined || obj === null.

When something fails

  • StageResultStore handles failure in 1 place: it turns it into a return value in all 1.

Was this page helpful?

Download as PDF