API reference
components/tool-call-chip
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/tool-call-chip";Exports
Section titled “Exports”| 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”type ToolCallChipProps = Readonly<{ name: string; state: ActivityState; startedAt: number; finishedAt?: number; onRetry?: () => void; className?: string;}>;Props accepted by ToolCallChip.
formatCallTime()function
Section titled “formatCallTime()”function formatCallTime(milliseconds): string;A tool call’s time: milliseconds under a second, then the activity clock.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
milliseconds |
number |
Returns
Section titled “Returns”string
ToolCallChip()function
Section titled “ToolCallChip()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
ToolCallChipProps |
Returns
Section titled “Returns”Element