# Class InMemoryMemoryService

An in-memory memory service for prototyping purpose only.

Uses keyword matching instead of semantic search.

#### Implements

- BaseMemoryService

- Defined in memory/in_memory_memory_service.ts:22

## Constructors

### constructor

- new InMemoryMemoryService(): InMemoryMemoryService

  #### Returns InMemoryMemoryService

## Methods

### addSessionToMemory

- addSessionToMemory(session: Session): Promise<void>

  Adds a session to the memory.

  #### Parameters

  - session: Session

    The session to add to the memory.

  #### Returns Promise<void>

  A promise that resolves when the session is added to the memory.

  Implementation of BaseMemoryService.addSessionToMemory

  - Defined in memory/in_memory_memory_service.ts:28

### searchMemory

- searchMemory(req: SearchMemoryRequest): Promise<SearchMemoryResponse>

  Searches for sessions that match the query.

  #### Parameters

  - req: SearchMemoryRequest

  #### Returns Promise<SearchMemoryResponse>

  A promise that resolves to SearchMemoryResponse containing the matching memories.

  Implementation of BaseMemoryService.searchMemory

  - Defined in memory/in_memory_memory_service.ts:38