Skip to content

TroubleshootingGenerator

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-14-meta/generators/troubleshooting.generator.ts

Methods

MethodSignatureReturns
extractTroubleshootingSectionsextractTroubleshootingSections(documents: Array<{ title: string; slug: string; content?: string }>)ExtractedTroubleshootingSection[]
generategenerate(input: TroubleshootingGeneratorInput, templates: FixedDocTemplate[], reference: MetaCategoryReference)`Promise<{
documents: GeneratedDocument[];
promptTokens: number;
completionTokens: number;

}>| |generateOverview|generateOverview(input: TroubleshootingGeneratorInput, templates: FixedDocTemplate[], reference: MetaCategoryReference)|Promise<{ documents: GeneratedDocument[]; promptTokens: number; completionTokens: number; }>` |

Where it refuses work

  • TroubleshootingGenerator stops the work with an early return when templates && templates.length > 0.
  • TroubleshootingGenerator stops the work with an early return when sections.length === 0.

When something fails

  • TroubleshootingGenerator handles failure in 5 places: it logs it and continues in all 5.

Was this page helpful?

Download as PDF