@kitn.ai/ui
Version:
Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.
11 lines (10 loc) • 424 B
TypeScript
/** A tool-call part rendered by <Tool>. Pure type — kept JSX-free so it can be
* imported by the framework-neutral state core and the React typecheck pass. */
export interface ToolPart {
type: string;
state: 'input-streaming' | 'input-available' | 'output-available' | 'output-error';
input?: Record<string, unknown>;
output?: Record<string, unknown>;
toolCallId?: string;
errorText?: string;
}