Files
ai-taxonomy-literature-anal…/lib/agent-tools.ts
T
2026-10-23 05:34:27 +00:00

40 lines
3.4 KiB
TypeScript

// Client-safe. Tools that individual papers designed, entered by hand from the papers themselves.
// To add a paper: append an entry with its id from /papers/<id> and its tools.
export interface DesignedTool {
name: string;
does: string; // what the tool does (paraphrased from the paper's tool card)
builtOn?: string; // model / API / library it wraps, as the paper states
where: string; // where the paper lists it
group: 'main' | 'exploration';
}
export interface PaperTools {
paperId: number;
title: string;
note?: string;
tools: DesignedTool[];
}
export const PAPER_TOOLS: PaperTools[] = [
{
paperId: 11700,
title: 'OctoTools: A Multi-Agent Framework with Extensible Tools for Complex Reasoning',
note: 'Every tool is wrapped in a standardized “tool card” that encapsulates its functionality. The paper states “We implemented 11 tools in the toolbox for our experiments” (Appendix B.2) and lists three more exploration tools separately (Appendix B.3), so 14 are described in total.',
tools: [
{ group: 'main', name: 'ArXiv_Paper_Searcher', does: 'Searches arXiv and returns abstracts and links matching a query.', builtOn: 'arXiv repository', where: 'Tool card E.1' },
{ group: 'main', name: 'Generalist_Solution_Generator', does: 'Default reasoning step used when no external tool is needed; the base toolset.', builtOn: 'An instance of the base LLM', where: 'Tool card E.2; §3.1' },
{ group: 'main', name: 'Google_Search', does: 'Web search returning links and result summaries.', builtOn: 'Google custom search API', where: 'Tool card E.3' },
{ group: 'main', name: 'Image_Captioner', does: 'Generates a text description of an image.', builtOn: 'An instance of the base LLM', where: 'Tool card E.4' },
{ group: 'main', name: 'Path_Generalist_Classifier', does: 'Zero-shot classification of H&E pathology image patches.', builtOn: 'CONCH', where: 'Tool card E.5' },
{ group: 'main', name: 'Pubmed_Search', does: 'Retrieves PubMed article abstracts for a text query.', builtOn: 'PubMed and NCBI APIs', where: 'Tool card E.6' },
{ group: 'main', name: 'Python_Code_Generator', does: 'Generates and executes Python code, returning the result.', builtOn: 'An instance of the base LLM', where: 'Tool card E.7' },
{ group: 'main', name: 'Relevant_Patch_Zoomer', does: 'Picks one of the four quadrants or the centre patch of an image to zoom into and saves the patches.', builtOn: 'An instance of the base LLM', where: 'Tool card E.8' },
{ group: 'main', name: 'Text_Detector', does: 'Detects multilingual text in images (OCR).', builtOn: 'EasyOCR', where: 'Tool card E.9' },
{ group: 'main', name: 'URL_Text_Extractor', does: 'Visits a web page from a URL and returns its text.', where: 'Tool card E.10' },
{ group: 'main', name: 'Wikipedia_Knowledge_Searcher', does: 'Searches Wikipedia and returns matching articles.', builtOn: 'MediaWiki API', where: 'Tool card E.11' },
{ group: 'exploration', name: 'Object_Detector', does: 'Detects objects in an image given a list of labels.', builtOn: 'Grounding DINO', where: 'Appendix B.3; tool card F.1' },
{ group: 'exploration', name: 'Advanced_Object_Detector', does: 'Upgraded Object_Detector.', builtOn: 'DINO-X via API', where: 'Appendix B.3; tool card F.2' },
{ group: 'exploration', name: 'Nature_News_Fetcher', does: 'Retrieves the latest news articles from Nature.', where: 'Appendix B.3; tool card F.3' },
],
},
];