ErrorRetryCard

A failed tool call with a way forward: retry as is, edit the arguments and retry, or skip. AI.

Open playground
refund_payment failedRefund window closed on 2 Oct. The order is 41 days old.

About

ErrorRetryCard is a React component in the AI category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { ErrorRetryCard } from "@ashutoshswamy/smoui" and set name, message, input among its 4 props.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { ErrorRetryCard } from "@ashutoshswamy/smoui";

<ErrorRetryCard name="refund_payment" message="Refund window closed." input={args} onRetry={retry} />

Props 4

name

The tool that failed.

string
message

What went wrong.

string
input

Arguments. Enables Edit and retry.

string
onRetry / onRetryEdited / onSkip

Actions.

function