UNPKG

tinyagent-ts

Version:

Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning

46 lines (45 loc) 1.45 kB
import { Tool } from './types'; import { FinalAnswerTool } from './final-answer'; import { FileTool } from './file-tool'; import { GrepTool } from './grep-tool'; import { UuidTool } from './uuid-tool'; import { HumanLoopTool } from './human-loop-tool'; import { WebSearchTool } from './web-search-tool'; /** * Default tool instances */ export declare const defaultTools: { readonly finalAnswer: FinalAnswerTool; readonly file: FileTool; readonly grep: GrepTool; readonly uuid: UuidTool; readonly humanLoop: HumanLoopTool; readonly webSearch: WebSearchTool; readonly python: Tool; }; /** * Get all default tools as an array */ export interface GetDefaultToolsOptions { includeFinalAnswer?: boolean; } export declare function getDefaultTools(options?: GetDefaultToolsOptions): Tool[]; /** * Get default tools by category */ export declare const defaultToolCategories: { readonly filesystem: readonly [FileTool, GrepTool]; readonly utility: readonly [UuidTool]; readonly search: readonly [WebSearchTool]; readonly interaction: readonly [HumanLoopTool]; readonly completion: readonly [FinalAnswerTool]; readonly execution: readonly [Tool]; }; /** * Get tools by category */ export declare function getToolsByCategory(category: keyof typeof defaultToolCategories): Tool[]; /** * Get all categories */ export declare function getToolCategories(): (keyof typeof defaultToolCategories)[];