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

Method call

packages/effect/src/chat/ChatTest.ts:1501–1511  ·  view source on GitHub ↗
(effect: Effect.Effect<A, ChatError>)

Source from the content-addressed store, hash-verified

1499 }
1500
1501 call<A>(effect: Effect.Effect<A, ChatError>): Effect.Effect<A, ConformanceFailure> {
1502 return Effect.mapError(effect, (error) => {
1503 const listed = error.reason._tag === "Unsupported" && this.has(error.reason.capability)
1504 return failure(
1505 this.rule,
1506 "success",
1507 describeError(error) + (listed ? " for a listed capability" : ""),
1508 error
1509 )
1510 })
1511 }
1512
1513 collect<A>(stream: Stream.Stream<A, ChatError>): Effect.Effect<Array<A>, ConformanceFailure> {
1514 return this.call(Stream.runCollect(stream))

Callers 15

collectMethod · 0.95
postMethod · 0.95
probeMethod · 0.95
conformanceFunction · 0.95
Plugin.test.tsFile · 0.45
Plugins.test.tsFile · 0.45
Client.test.tsFile · 0.45
makeFunction · 0.45
withoutTransformsFunction · 0.45
decodeUtf8Function · 0.45
decodeUtf8Function · 0.45
userPostsFunction · 0.45

Calls 3

hasMethod · 0.95
describeErrorFunction · 0.85
failureFunction · 0.70

Tested by 9

userPostsFunction · 0.36
userPostsFunction · 0.36
storedFunction · 0.36
spanFunction · 0.36
listFunction · 0.36
transformFunction · 0.36
getFunction · 0.36
sizedFunction · 0.36
describeFunction · 0.36