Skip to main content

Class: HybridFeatureDetector

Defined in: packages/agentos/src/cognition/memory/core/encoding/ContentFeatureDetector.ts:168

Uses keyword detection for real-time encoding. Exposes detectWithLlm() for retroactive re-classification during consolidation.

Implements​

Constructors​

Constructor​

new HybridFeatureDetector(llmInvoker?): HybridFeatureDetector

Defined in: packages/agentos/src/cognition/memory/core/encoding/ContentFeatureDetector.ts:172

Parameters​

llmInvoker?​

(system, user) => Promise<string>

Returns​

HybridFeatureDetector

Methods​

detect()​

detect(text): Promise<ContentFeatures>

Defined in: packages/agentos/src/cognition/memory/core/encoding/ContentFeatureDetector.ts:177

Real-time detection: keyword only (zero latency).

Parameters​

text​

string

Returns​

Promise<ContentFeatures>

Implementation of​

IContentFeatureDetector.detect


detectWithLlm()​

detectWithLlm(text): Promise<ContentFeatures>

Defined in: packages/agentos/src/cognition/memory/core/encoding/ContentFeatureDetector.ts:182

Deferred detection: LLM-based (called during consolidation).

Parameters​

text​

string

Returns​

Promise<ContentFeatures>