Open History to see the last commit
1import { shellTool as baseShellTool } from '@tanstack/openai-base'
2import type { ProviderTool } from '@tanstack/ai'
3import type { ShellToolFactoryConfig } from '@tanstack/openai-base'
4
5export {
6 type ShellToolConfig,
7 type ShellTool,
8 type ShellToolFactoryConfig,
9 convertShellToolToAdapterFormat,
10} from '@tanstack/openai-base'
11
12export type OpenAIShellTool = ProviderTool<'openai', 'shell'>
13
14/**
15 * Creates a standard Tool from ShellTool parameters, branded as an OpenAI
16 * provider tool. Pass `environment` to attach a container + skills.
17 */
18export function shellTool(
19 config: ShellToolFactoryConfig = {},
20): OpenAIShellTool {
21 return baseShellTool(config) as OpenAIShellTool
22}