nicechat
Version:
An extensible AI chat framework for OpenAi's models
20 lines (19 loc) • 465 B
TypeScript
export interface ChatPlugin {
meta: {
name: string;
description: string;
parameters: {
type: "object";
properties: Record<string, {
type: string;
description: string;
}>;
};
};
execute: (args: string, options: {
toolkit: {
log: (msg: string) => void;
debug: (msg: string) => void;
};
}) => Promise<string>;
}