@iucteam/lot-agents
Version:
Agents for lot agentic framework
16 lines (15 loc) • 707 B
TypeScript
import { Brain, Inference, Sensor, SensorConfig, Stringifiable, Task, TaskType } from '@iucteam/lot';
export type FileReaderInputType = Record<string, unknown> & {
path: string;
};
export declare class FileReader extends Sensor {
constructor(config: SensorConfig, brain?: Brain<Stringifiable>);
/**
* Allows to read a file from the local file-systems using its absolute path
* @param input the path of the file to read as a {path: 'absolute file path'}
* @returns the content of the read file as {'content': 'the content'}
*/
detect(task: Task<FileReaderInputType>): Promise<Inference<Stringifiable>[]>;
getSchema(): string;
getAgentCapabilities(): TaskType[];
}