Skip to main content

Interface: IAIGatewayDeps

Defined in: types.ts:231

Every child instance of the gateway, each as its I<Class> interface: what the orchestration functions receive as deps.

Created once by createGatewayDeps from IAIGatewayConfig and the IAIGatewayOverrides factories, in dependency order, and held by the AIGateway for its lifetime; the admin getters of the facade hand some of them out.

Properties​

aiProfileStore​

aiProfileStore: IAIProfileStore

Defined in: types.ts:235

The profiles.


contextAssembler​

contextAssembler: IContextAssembler

Defined in: types.ts:239

Builds the model request of a call.


embedder​

embedder: IEmbedder

Defined in: types.ts:253

Embeds texts.


fileStore​

fileStore: IFileStore

Defined in: types.ts:245

The uploaded files.


guardrails​

guardrails: IGuardrails

Defined in: types.ts:275

The input and output checks.


humanGate​

humanGate: IHumanGate

Defined in: types.ts:271

Pauses and resumes a run.


kbIngestor​

kbIngestor: IKbIngestor

Defined in: types.ts:261

Writes documents into the knowledge base; the second root the facade exposes.


kbRetriever​

kbRetriever: IKbRetriever

Defined in: types.ts:259

Searches the knowledge base for a call.


llmClient​

llmClient: ILLMClient

Defined in: types.ts:277

The one place that calls a model.


mdChunker​

mdChunker: IMdChunker

Defined in: types.ts:251

Cuts a Markdown document into chunks.


modelRegistry​

modelRegistry: IModelRegistry

Defined in: types.ts:233

The models and their caps.


promptTemplateStore​

promptTemplateStore: IPromptTemplateStore

Defined in: types.ts:237

The prompt templates, versioned.


queryRewriter​

queryRewriter: IQueryRewriter

Defined in: types.ts:257

Rewrites a question before the search.


runStore​

runStore: IRunStore

Defined in: types.ts:269

The paused runs.


skillRegistry​

skillRegistry: ISkillRegistry

Defined in: types.ts:267

The skills of a profile and a call.


threadStore​

threadStore: IThreadStore

Defined in: types.ts:241

Threads, turns and the lease.


toolPolicy​

toolPolicy: IToolPolicy

Defined in: types.ts:265

Which tools a call gets and what happens to a call of them.


toolRegistry​

toolRegistry: IToolRegistry

Defined in: types.ts:263

The tools: parsing and execution.


trace​

trace: ITrace

Defined in: types.ts:279

The record of every model call.


turnBuilder​

turnBuilder: ITurnBuilder

Defined in: types.ts:243

Turns from prompts and results, messages from turns.


usageGuard​

usageGuard: IUsageGuard

Defined in: types.ts:273

Asks the application's usage adapter before a model call and tells it after.


userMemoryStore​

userMemoryStore: IUserMemoryStore

Defined in: types.ts:249

The remembered facts of a user.


vectorStore​

vectorStore: IVectorStore

Defined in: types.ts:255

The chunks and their vectors.


workingMemory​

workingMemory: IWorkingMemory

Defined in: types.ts:247

The thread memory; the built-in WorkingMemory unless the host passes its own in overrides.