import type { HfInference } from "@huggingface/inference"; export type Data = string | Blob | ArrayBuffer; export interface Tool { name: string; description: string; examples: Array; call?: (input: Promise, inference: HfInference) => Promise; } export interface Example { prompt: string; code: string; tools: string[]; inputs?: Inputs; } export interface Update { message: string; data: undefined | string | Blob; } export type Inputs = Partial>; export type LLM = (prompt: string) => Promise;