MCPcopy Create free account
hub / github.com/agent-tower/core / create

Method create

packages/server/src/output/msg-store.ts:372–379  ·  view source on GitHub ↗

* 创建 MsgStore

(sessionId: string, _agentType?: string, _workingDir?: string)

Source from the content-addressed store, hash-verified

370 * Session MsgStore 管理器
371 * 管理多个会话的 MsgStore
372 */
373class SessionMsgStoreManager {
374 private stores = new Map<string, MsgStore>();
375
376 /**
377 * 创建 MsgStore
378 */
379 create(sessionId: string, _agentType?: string, _workingDir?: string): MsgStore {
380 let store = this.stores.get(sessionId);
381 if (!store) {
382 store = new MsgStore();

Callers 1

getOrCreateMethod · 0.95

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected