A tool operation’s pending, approved or denied decision control.
PendingApprovingApprovedDenied
Live components with example content. Try their controls, or switch the theme and palette.
Usage
"use client";
import { ToolApproval } from "@/components/agents/tool-approval";
export default function Example() {
return (
<ToolApproval tool="members.invite" description="Invite a teammate." status="pending" onApprove={() => {}} onDeny={() => {}} />
);
}
Included variants
- Pending
- Approving
- Approved
- Denied
In Ciele
Use the workspace imports shown above inside Ciele. App components use the shared Tailwind tokens in globals.css. For another project, adapt the imports and bring the dependencies listed in the source.
Source files
- apps/web/src/components/agents/tool-approval.tsx
Source code
The implementation used by Ciele, including its supporting components. Original attribution and license notices remain in the files.
Loading source files…