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

Method setSuccess

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

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

(
    schema: SuccessSchema
  )

Source from the content-addressed store, hash-verified

299 * Set the schema to use to validate the result of a tool call when successful.
300 */
301 setSuccess<SuccessSchema extends Schema.Constraint>(
302 schema: SuccessSchema
303 ): Tool<
304 Name,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected