MCPcopy Index your code
hub / github.com/Effect-TS/effect / withConstantIdGenerator

Function withConstantIdGenerator

packages/ai/ai/test/Chat.test.ts:14–17  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

12import * as TestUtils from "./utilities.js"
13
14const withConstantIdGenerator = (id: string) =>
15 Effect.provideService(IdGenerator.IdGenerator, {
16 generateId: () => Effect.succeed(id)
17 })
18
19const PersistenceLayer = Layer.provideMerge(
20 Chat.layerPersisted({ storeId: "chat" }),

Callers 1

Chat.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected