newbolt / app /types /actions.ts
0Scottzilla0's picture
Upload folder using huggingface_hub
8481fea verified
raw
history blame contribute delete
360 Bytes
export type ActionType = 'file' | 'shell';
export interface BaseAction {
content: string;
}
export interface FileAction extends BaseAction {
type: 'file';
filePath: string;
}
export interface ShellAction extends BaseAction {
type: 'shell';
}
export type BoltAction = FileAction | ShellAction;
export type BoltActionData = BoltAction | BaseAction;