effect-io-ai

Package: @effect/ai
Module: Tool

Tool.FailureMode

The strategy used for handling errors returned from tool call handler execution.

If set to "error" (the default), errors that occur during tool call handler execution will be returned in the error channel of the calling effect.

If set to "return", errors that occur during tool call handler execution will be captured and returned as part of the tool call result.

Signature

type FailureMode = "error" | "return"

Source

Since v1.0.0