effect-io-ai

Package: @effect/ai
Module: Response

Response.ToolResultFailure

Represents a failed tool call result.

Signature

export interface ToolResultFailure<Name extends string, Failure> extends BaseToolResult<Name> {
  /**
   * The decoded failure returned by the tool execution.
   */
  readonly result: Failure
  /**
   * Whether or not the result of executing the tool call handler was an error.
   */
  readonly isFailure: true
}

Source

Since v1.0.0