feat(tools): add reusable execution contexts for shell, filesystem, and browser tools
This commit is contained in:
+29
@@ -12,6 +12,35 @@ export type {
|
||||
TAgentCacheRetention,
|
||||
TAgentCacheSetting,
|
||||
} from './smartagent.interfaces.js';
|
||||
export {
|
||||
createBrowserTools,
|
||||
createFilesystemTools,
|
||||
createLocalToolExecutionContext,
|
||||
createShellTools,
|
||||
filesystemTool,
|
||||
formatShellResult,
|
||||
formatToolOutput,
|
||||
shellTool,
|
||||
} from '../ts_tools/index.js';
|
||||
export type {
|
||||
IBrowserToolInput,
|
||||
ICreateBrowserToolsOptions,
|
||||
ICreateFilesystemToolsOptions,
|
||||
ICreateShellToolsOptions,
|
||||
IFilesystemToolOptions,
|
||||
ILocalToolExecutionContextOptions,
|
||||
IShellToolOptions,
|
||||
IToolBrowserContext,
|
||||
IToolExecutionContext,
|
||||
IToolFilesystemContext,
|
||||
IToolFilesystemListOptions,
|
||||
IToolFilesystemReadOptions,
|
||||
IToolPermissionRequest,
|
||||
IToolRunOptions,
|
||||
IToolShellContext,
|
||||
IToolShellResult,
|
||||
TBrowserToolAction,
|
||||
} from '../ts_tools/index.js';
|
||||
|
||||
// Re-export tool() and z so consumers can define tools without extra imports
|
||||
export { tool, jsonSchema } from '@push.rocks/smartai';
|
||||
|
||||
Reference in New Issue
Block a user