Skip to main content
Glama
tokenFlow.test.ts657 B
import { HopeMemoryModel } from '../model.js'; describe('HopeMemoryModel memory updates', () => { let model: HopeMemoryModel; beforeEach(async () => { model = new HopeMemoryModel(); await model.initialize(); }); afterEach(() => { model.dispose(); }); it('stores textual memories from strings', async () => { await model.storeMemory('Important fact about HOPE'); const embedding = await model.encodeText('query about HOPE'); const state = model.createInitialState(); const updated = model.forward(embedding, state); expect(updated.memoryUpdate.newState.shortTerm.shape[0]).toBeGreaterThanOrEqual(0); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/henryhawke/mcp-titan'

If you have feedback or need assistance with the MCP directory API, please join our Discord server