crewai-ts
Version:
TypeScript port of crewAI for agent-based workflows
27 lines • 738 B
TypeScript
/**
* FileReadTool implementation
* Provides file reading capabilities for agents
* Optimized for performance, streaming large files, and memory efficiency
*/
/**
* Result of a file read operation
*/
export interface FileReadResult {
content: string;
filepath: string;
encoding: string;
size: number;
truncated: boolean;
error?: string;
}
/**
* Creates a file read tool with optimized performance
*/
export declare function createFileReadTool(): import("../StructuredTool.js").StructuredTool<{
filepath?: string;
encoding?: "utf8" | "ascii" | "utf-8" | "binary";
maxSizeBytes?: number;
startLine?: number;
endLine?: number;
}, FileReadResult>;
//# sourceMappingURL=FileReadTool.d.ts.map