Kind: Class
Methods
| Method | Signature | Returns |
|---|---|---|
extractTroubleshootingSections | extractTroubleshootingSections(documents: Array<{ title: string; slug: string; content?: string }>) | ExtractedTroubleshootingSection[] |
generate | generate(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
TroubleshootingGeneratorstops the work with an early return whentemplates && templates.length > 0.TroubleshootingGeneratorstops the work with an early return whensections.length === 0.
When something fails
TroubleshootingGeneratorhandles failure in 5 places: it logs it and continues in all 5.
Was this page helpful?