import type { ISubAgentContextBuilder, RagResult, SubAgentContextRequest, SubAgentContextResult } from '@mcp-abap-adt/llm-agent'; /** * Thin retrieval callback used by the builder. The caller is responsible * for converting `text` into whatever the underlying store needs * (typically: wrap text + embedder in QueryEmbedding, then call * `IRag.query(embedding, k, options)`), but the builder itself stays * decoupled from embedder/RAG specifics. */ export type SubAgentRetrievalSource = (text: string, k: number, signal?: AbortSignal) => Promise; export interface DefaultSubAgentContextBuilderConfig { /** Source of project/domain knowledge snippets. */ projectSource?: SubAgentRetrievalSource; /** Source of tool-description / MCP-RAG snippets. */ toolSource?: SubAgentRetrievalSource; topKProject?: number; topKTool?: number; maxContextChars?: number; } /** * Builds subagent context by querying project source, then tool source. * Skips retrieval entirely when the agent's contextPolicy is 'forbidden'. * Bounds the final context by character budget (cheap proxy for tokens). */ export declare class DefaultSubAgentContextBuilder implements ISubAgentContextBuilder { private readonly config; constructor(config: DefaultSubAgentContextBuilderConfig); build(req: SubAgentContextRequest): Promise; private refOf; } //# sourceMappingURL=default-context-builder.d.ts.map