| 4 | * A section that renders source code snippets from the code index. |
| 5 | */ |
| 6 | export declare class SourceCodeSection extends PromptSectionBase { |
| 7 | private readonly _index; |
| 8 | /** |
| 9 | * Creates a new 'SourceCodeSection' instance. |
| 10 | * @param index Code index to use. |
| 11 | * @param tokens Optional. Sizing strategy for this section. Defaults to `auto`. |
| 12 | * @param userPrefix Optional. Prefix to use for text output. Defaults to `user: `. |
| 13 | */ |
| 14 | constructor(index: CodeIndex, tokens?: number, userPrefix?: string); |
| 15 | renderAsMessages(memory: PromptMemory, functions: PromptFunctions, tokenizer: Tokenizer, maxTokens: number): Promise<RenderedPromptSection<Message<string>[]>>; |
| 16 | private getSectionOptions; |
| 17 | } |
| 18 | //# sourceMappingURL=SourceCodeSection.d.ts.map |
nothing calls this directly
no outgoing calls
no test coverage detected