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

Method setFailure

packages/effect/src/unstable/ai/Tool.ts:317–317  ·  view source on GitHub ↗

* Set the schema to use to validate the result of a tool call when it fails.

(
    schema: FailureSchema
  )

Source from the content-addressed store, hash-verified

315 * Set the schema to use to validate the result of a tool call when it fails.
316 */
317 setFailure<FailureSchema extends Schema.Constraint>(
318 schema: FailureSchema
319 ): Tool<
320 Name,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected