Add memory layers and RAG retrieval
This commit is contained in:
1 parent
1d0be56842
commit
1a86bded0b
31 files changed
+1592
-58
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import type { AgentRequest, AgentResponse, ConversationMessage } from '@agent/types';
|
||||
import type { GarnetClient } from '@common/garnet';
|
||||
import type { NatsClient } from '@common/nats';
|
||||
import type { MemoryService } from '../../memory/memory-types.js';
|
||||
import { getContext, getRequestLogger } from '@obs/context';
|
||||
import type { LlmClient } from '@llm/llm-client';
|
||||
import type { RoomContextService } from '@room/room-context-service';
|
||||
@@ -112,10 +113,17 @@ export class OnboardingSkill implements Skill {
|
||||
private readonly roomContextService?: RoomContextService,
|
||||
shadowEvalPublisher?: ShadowEvalPublisher,
|
||||
private readonly natsClient?: Pick<NatsClient, 'request'>,
|
||||
private readonly memoryService?: MemoryService,
|
||||
) {
|
||||
this.classifier = new OnboardingIntentClassifier(llmClient);
|
||||
this.blackboardStore = new OnboardingBlackboardStore(garnetClient);
|
||||
this.userMemoryStore = new UserMemoryStore(garnetClient);
|
||||
this.blackboardStore = new OnboardingBlackboardStore(
|
||||
garnetClient,
|
||||
memoryService?.session,
|
||||
);
|
||||
this.userMemoryStore = new UserMemoryStore(
|
||||
garnetClient,
|
||||
memoryService?.longTerm,
|
||||
);
|
||||
this.orchestrator = new OnboardingOrchestrator(llmClient);
|
||||
this.shadowEvalPublisher = shadowEvalPublisher ?? new ShadowEvalBus(garnetClient);
|
||||
this.toolRegistry = createOnboardingToolRegistry();
|
||||
@@ -381,6 +389,7 @@ export class OnboardingSkill implements Skill {
|
||||
{
|
||||
blackboardStore: this.blackboardStore,
|
||||
garnetClient: this.garnetClient,
|
||||
memoryService: this.memoryService,
|
||||
roomContextService: this.roomContextService,
|
||||
userMemoryStore: this.userMemoryStore,
|
||||
},
|
||||
@@ -474,6 +483,7 @@ export class OnboardingSkill implements Skill {
|
||||
userId: request.userId,
|
||||
session,
|
||||
garnetClient: this.garnetClient,
|
||||
memoryService: this.memoryService,
|
||||
roomContextService: this.roomContextService,
|
||||
toolRegistry: this.toolRegistry,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user