Files
toolLooper/tools/read_file.js

15 lines
718 B
JavaScript

const virtual_chroot = '/home/seb/src/aiTools/tmp';
export default {
type: "function", name: "read_file", description: "read a file", strict: true,
parameters: {
type: "object", required: ["path","linesToSkip","linesToRead"],additionalProperties: false, properties: {
path: { type: "string", description: "The path to the file to read.",},
linesToSkip: { type: "number", description: "The number of lines to skip. Use 0 to read from the beginning.",},
linesToRead: { type: "number",description: "1-400 The number of lines to read. Use 0 or more than 400 to read 400 lines.",}
},},};
export async function run() {
return `read_file error (not implemented)`
}