MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getTaskStore

Function getTaskStore

server/src/training-agent/task-handlers.ts:270–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268let sdkTaskStore: InMemoryTaskStore | PostgresTaskStore | null = null;
269
270function getTaskStore(): InMemoryTaskStore | PostgresTaskStore {
271 if (!sdkTaskStore) {
272 sdkTaskStore = isDatabaseInitialized()
273 ? new PostgresTaskStore(getPool())
274 : new InMemoryTaskStore();
275 }
276 return sdkTaskStore;
277}
278
279/** Look up which tools allow task augmentation. */
280function toolSupportsTask(toolName: string): boolean {

Callers 1

Calls 2

isDatabaseInitializedFunction · 0.85
getPoolFunction · 0.85

Tested by

no test coverage detected