UNPKG

@autobe/agent

Version:

AI backend server code generator

46 lines (45 loc) 1.73 kB
import { tags } from "typia"; export interface IFile { /** * Describe briefly why you made this document, and if you have any plans for * the next one. */ reason: string; /** Filename to generate or overwrite. */ filename: `${string}.md`; /** * Markdown file content. Only write the content of the file. Do not include * any questions. This should contain only the contents of the file. Do not * write down any questions or appreciation. For example, remove a sentence * such as "Is it okay if we proceed with the table of contents? Please let me * know if there is anything to add or exclude from the table of contents!" */ markdown: string; } export interface ICreateOrUpdateInput { /** * Fill in the elements of the array as many files as you want to create. * Overwrite if you point to the name of the file that already exists. * * @title files to create or update */ files: Array<IFile> & tags.MinItems<1>; } type Filename = string; type FileContent = string; export interface IAutoBeAnalyzeFileSystem { /** * Generate multiple markdown files. if there is already created files, * overwrite it. Generate several markdown files at once. It is recommended * that you create multiple files at a time. */ createOrUpdateFiles(input: ICreateOrUpdateInput): Promise<Record<string, string>>; } export declare class AutoBeAnalyzeFileSystem implements IAutoBeAnalyzeFileSystem { private readonly fileMap; constructor(fileMap?: Record<Filename, FileContent>); createOrUpdateFiles(input: { files: Array<IFile> & tags.MinItems<1>; }): Promise<Record<string, string>>; } export {};