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

Function setFailure

packages/effect/src/unstable/ai/Tool.ts:1059–1061  ·  view source on GitHub ↗
(this: Any, failureSchema: Schema.Constraint)

Source from the content-addressed store, hash-verified

1057 return clone(this, { successSchema })
1058 },
1059 setFailure(this: Any, failureSchema: Schema.Constraint) {
1060 return clone(this, { failureSchema })
1061 },
1062 setNeedsApproval(this: Any, needsApproval: NeedsApproval<any>) {
1063 return clone(this, { needsApproval })
1064 },

Callers

nothing calls this directly

Calls 1

cloneFunction · 0.85

Tested by

no test coverage detected