nsarrazin's picture
refactoring & better look
39b5447
raw
history blame
371 Bytes
export type LLM = {
name: string;
call: (prompt: string) => Promise<string>;
};
export type Tool<Input, Output> = {
name: string;
description: string;
examples: Array<{
prompt: string;
command: string;
}>;
call: (input: Promise<Input> | Input) => Promise<Output>;
};
export type Update = {
message: string;
data: undefined | string | Blob;
};