MCPcopy Create free account
hub / github.com/Stevenic/codepilot / SourceCodeSection

Class SourceCodeSection

lib/SourceCodeSection.d.ts:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 * A section that renders source code snippets from the code index.
5 */
6export 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected