feat(tools): add barrel exports and allBuiltinTools list
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
export { shellExecTool } from './shell.js';
|
||||||
|
export { fileReadTool } from './file-read.js';
|
||||||
|
export { fileWriteTool } from './file-write.js';
|
||||||
|
export { fileEditTool } from './file-edit.js';
|
||||||
|
export { fileListTool } from './file-list.js';
|
||||||
|
export { webFetchTool } from './web-fetch.js';
|
||||||
|
|
||||||
|
import type { Tool } from '../types.js';
|
||||||
|
import { shellExecTool } from './shell.js';
|
||||||
|
import { fileReadTool } from './file-read.js';
|
||||||
|
import { fileWriteTool } from './file-write.js';
|
||||||
|
import { fileEditTool } from './file-edit.js';
|
||||||
|
import { fileListTool } from './file-list.js';
|
||||||
|
import { webFetchTool } from './web-fetch.js';
|
||||||
|
|
||||||
|
export const allBuiltinTools: Tool[] = [
|
||||||
|
shellExecTool,
|
||||||
|
fileReadTool,
|
||||||
|
fileWriteTool,
|
||||||
|
fileEditTool,
|
||||||
|
fileListTool,
|
||||||
|
webFetchTool,
|
||||||
|
];
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
export type { Tool, ToolCall, ToolResult, ToolInputSchema, ToolUseBlock, ToolResultBlock, ToolUseMessage, ToolResultMessage } from './types.js';
|
||||||
|
export { ToolRegistry } from './registry.js';
|
||||||
|
export type { AnthropicToolDef, OpenAIToolDef } from './registry.js';
|
||||||
|
export { ToolExecutor } from './executor.js';
|
||||||
|
export type { ToolExecutorConfig } from './executor.js';
|
||||||
|
export { allBuiltinTools } from './builtin/index.js';
|
||||||
|
export { shellExecTool } from './builtin/shell.js';
|
||||||
|
export { fileReadTool } from './builtin/file-read.js';
|
||||||
|
export { fileWriteTool } from './builtin/file-write.js';
|
||||||
|
export { fileEditTool } from './builtin/file-edit.js';
|
||||||
|
export { fileListTool } from './builtin/file-list.js';
|
||||||
|
export { webFetchTool } from './builtin/web-fetch.js';
|
||||||
Reference in New Issue
Block a user