Skip to content
API reference

components/tool-call-chip

Import
import * as api from "@fungi.computer/caps/components/tool-call-chip";
Kind Export Description
type alias ToolCallChipProps Props accepted by ToolCallChip.
function formatCallTime() A tool call’s time: milliseconds under a second, then the activity clock.
function ToolCallChip() One tool call as a chip. While it runs a quiet fill wipes across and a live clock counts; when it lands the fill completes and washes away; when it fails the chip shakes and offers a retry.

ToolCallChipPropstype alias

Section titled “ToolCallChipProps”
Signature
type ToolCallChipProps = Readonly<{
name: string;
state: ActivityState;
startedAt: number;
finishedAt?: number;
onRetry?: () => void;
className?: string;
}>;

Props accepted by ToolCallChip.

formatCallTime()function

Section titled “formatCallTime()”
Signature
function formatCallTime(milliseconds): string;

A tool call’s time: milliseconds under a second, then the activity clock.

Parameter Type
milliseconds number

string


ToolCallChip()function

Section titled “ToolCallChip()”
Signature
function ToolCallChip(__namedParameters): Element;

One tool call as a chip. While it runs a quiet fill wipes across and a live clock counts; when it lands the fill completes and washes away; when it fails the chip shakes and offers a retry.

Parameter Type
__namedParameters ToolCallChipProps

Element