UNPKG

crewai-ts

Version:

TypeScript port of crewAI for agent-based workflows

25 lines 766 B
/** * FileWriteTool implementation * Provides file writing capabilities for agents * Optimized for performance, streaming large content, and memory efficiency */ /** * Result of a file write operation */ export interface FileWriteResult { success: boolean; filepath: string; bytesWritten: number; error?: string; } /** * Creates a file write tool with optimized performance */ export declare function createFileWriteTool(): import("../StructuredTool.js").StructuredTool<{ content?: string | Buffer<ArrayBufferLike> | Uint8Array<ArrayBuffer>; append?: boolean; filepath?: string; encoding?: "utf8" | "ascii" | "utf-8" | "binary"; createDirectories?: boolean; }, FileWriteResult>; //# sourceMappingURL=FileWriteTool.d.ts.map