Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FileSearchTool

import type { FileSearchTool } from "https://googleapis.deno.dev/v1/ces:v1.ts";

The file search tool allows the agent to search across the files uploaded by the app/agent developer. It has presets to give relatively good quality search over the uploaded files and summarization of the retrieved results.

interface FileSearchTool {
corpusType?: "CORPUS_TYPE_UNSPECIFIED" | "USER_OWNED" | "FULLY_MANAGED";
description?: string;
fileCorpus?: string;
name?: string;
}

§Properties

§
corpusType?: "CORPUS_TYPE_UNSPECIFIED" | "USER_OWNED" | "FULLY_MANAGED"
[src]

Optional. The type of the corpus. Default is FULLY_MANAGED.

§
description?: string
[src]

Optional. The tool description.

§
fileCorpus?: string
[src]

Optional. The corpus where files are stored. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

§
name?: string
[src]

Required. The tool name.