Skip to main content

Interface: IAIGatewayOverrides

Defined in: types.ts:296

What a host (or a test) replaces in the gateway: one factory per dep, each receiving the dep's own config and deps.

The second argument of the AIGateway constructor. A factory must return an object that implements the dep's I<Class> interface; the usual body is (config, deps) => new MyClass(config, deps). A dep without a config or without deps receives undefined there.

Properties​

aiProfileStore?​

optional aiProfileStore?: TDepFactory<IAIProfileStoreConfig, IAIProfileStoreDeps, IAIProfileStore>

Defined in: types.ts:300

Replaces the AIProfileStore; receives its config and IAIProfileStoreDeps.


contextAssembler?​

optional contextAssembler?: TDepFactory<IContextAssemblerConfig, IContextAssemblerDeps, IContextAssembler>

Defined in: types.ts:304

Replaces the ContextAssembler; receives its config and IContextAssemblerDeps.


embedder?​

optional embedder?: TDepFactory<IEmbedderConfig, IEmbedderDeps, IEmbedder>

Defined in: types.ts:318

Replaces the Embedder; receives its config and IEmbedderDeps.


fileStore?​

optional fileStore?: TDepFactory<IFileStoreConfig, undefined, IFileStore>

Defined in: types.ts:310

Replaces the FileStore; receives its config, no deps.


guardrails?​

optional guardrails?: TDepFactory<IGuardrailsConfig, IGuardrailsDeps, IGuardrails>

Defined in: types.ts:340

Replaces the Guardrails; receives its config and IGuardrailsDeps.


humanGate?​

optional humanGate?: TDepFactory<IHumanGateConfig, IHumanGateDeps, IHumanGate>

Defined in: types.ts:336

Replaces the HumanGate; receives its config and IHumanGateDeps.


kbIngestor?​

optional kbIngestor?: TDepFactory<IKbIngestorConfig, IKbIngestorDeps, IKbIngestor>

Defined in: types.ts:326

Replaces the KbIngestor; receives its config and IKbIngestorDeps.


kbRetriever?​

optional kbRetriever?: TDepFactory<IKbRetrieverConfig, IKbRetrieverDeps, IKbRetriever>

Defined in: types.ts:324

Replaces the KbRetriever; receives its config and IKbRetrieverDeps.


llmClient?​

optional llmClient?: TDepFactory<ILLMClientConfig, ILLMClientDeps, ILLMClient>

Defined in: types.ts:342

Replaces the LLMClient (tests: a fake that answers without a provider); receives its config and ILLMClientDeps.


mdChunker?​

optional mdChunker?: TDepFactory<IMdChunkerConfig, undefined, IMdChunker>

Defined in: types.ts:316

Replaces the MdChunker; receives its config, no deps.


modelRegistry?​

optional modelRegistry?: TDepFactory<IModelRegistryConfig, undefined, IModelRegistry>

Defined in: types.ts:298

Replaces the ModelRegistry; receives IModelRegistryConfig, no deps.


promptTemplateStore?​

optional promptTemplateStore?: TDepFactory<IPromptTemplateStoreConfig, undefined, IPromptTemplateStore>

Defined in: types.ts:302

Replaces the PromptTemplateStore; receives its config, no deps.


queryRewriter?​

optional queryRewriter?: TDepFactory<IQueryRewriterConfig, IQueryRewriterDeps, IQueryRewriter>

Defined in: types.ts:322

Replaces the QueryRewriter; receives its config and IQueryRewriterDeps.


runStore?​

optional runStore?: TDepFactory<IRunStoreConfig, undefined, IRunStore>

Defined in: types.ts:334

Replaces the RunStore; receives its config, no deps.


skillRegistry?​

optional skillRegistry?: TDepFactory<ISkillRegistryConfig, undefined, ISkillRegistry>

Defined in: types.ts:332

Replaces the SkillRegistry; receives its config, no deps.


threadStore?​

optional threadStore?: TDepFactory<IThreadStoreConfig, undefined, IThreadStore>

Defined in: types.ts:306

Replaces the ThreadStore; receives its config, no deps.


toolPolicy?​

optional toolPolicy?: TDepFactory<IToolPolicyConfig, undefined, IToolPolicy>

Defined in: types.ts:330

Replaces the ToolPolicy; receives its config, no deps.


toolRegistry?​

optional toolRegistry?: TDepFactory<IToolRegistryConfig, undefined, IToolRegistry>

Defined in: types.ts:328

Replaces the ToolRegistry; receives its config (the built-in tools already in front of the app's), no deps.


trace?​

optional trace?: TDepFactory<ITraceConfig, undefined, ITrace>

Defined in: types.ts:344

Replaces the Trace; receives its config, no deps.


turnBuilder?​

optional turnBuilder?: TDepFactory<undefined, undefined, ITurnBuilder>

Defined in: types.ts:308

Replaces the TurnBuilder; it has no config and no deps.


usageGuard?​

optional usageGuard?: TDepFactory<IUsageGuardConfig, undefined, IUsageGuard>

Defined in: types.ts:338

Replaces the UsageGuard; receives its config, no deps.


userMemoryStore?​

optional userMemoryStore?: TDepFactory<IUserMemoryStoreConfig, IUserMemoryStoreDeps, IUserMemoryStore>

Defined in: types.ts:314

Replaces the UserMemoryStore; receives its config and IUserMemoryStoreDeps.


vectorStore?​

optional vectorStore?: TDepFactory<IVectorStoreConfig, undefined, IVectorStore>

Defined in: types.ts:320

Replaces the VectorStore; receives its config, no deps.


workingMemory?​

optional workingMemory?: TDepFactory<IWorkingMemoryConfig, IWorkingMemoryDeps, IWorkingMemory>

Defined in: types.ts:312

Replaces the WorkingMemory (a host's own thread memory, D122); receives its config and IWorkingMemoryDeps.