MCPcopy Create free account
hub / github.com/Effect-TS/effect / captureRequirements

Function captureRequirements

packages/effect/src/unstable/ai/Model.ts:93–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 _RIn: identity
92 },
93 get captureRequirements() {
94 const self = this as any as Model<any, any, any>
95 return Effect.contextWith((context: Context.Context<never>) =>
96 Effect.succeed(Layer.provide(self, Layer.succeedContext(context)))
97 )
98 },
99 ...PipeInspectableProto,
100 toJSON(this: Model<any, any, any>): unknown {
101 return {

Callers

nothing calls this directly

Calls 2

succeedMethod · 0.45
provideMethod · 0.45

Tested by

no test coverage detected