ChloeGet Started

Reference

@chloejs/core/tools/drive

Finding files in one part of Google Drive, and reading one as text.

The tools over driveService.ts: finding files in the part of Drive an agent is bound to, and reading one as text. The binding lives in the agent's config, and the model chooses only the words to look for.

import * as drive from "@chloejs/core/tools/drive";
tools: { driveSearchFiles: drive.searchFiles({ search }), driveReadFile: drive.readFile({ search }) }

readFilesearchFiles

readFilefunction

export function readFile({ search = "", what = "Drive" }: Options = {})

A tool that reads one file the search listed, as text: a Doc, a Sheet, Slides or a text file.

connections/google/drive.ts:41

searchFilesfunction

export function searchFiles({ search = "", what = "Drive" }: Options = {})

A tool that finds files in the part of Drive the agent is bound to. Give it the same search as the agent's readFile.

connections/google/drive.ts:28