Open History to see the last commit
1import { applyPatchTool as baseApplyPatchTool } from '@tanstack/openai-base'
2import type { ProviderTool } from '@tanstack/ai'
3
4export {
5 type ApplyPatchToolConfig,
6 type ApplyPatchTool,
7 convertApplyPatchToolToAdapterFormat,
8} from '@tanstack/openai-base'
9
10export type OpenAIApplyPatchTool = ProviderTool<'openai', 'apply_patch'>
11
12/**
13 * Creates a standard Tool from ApplyPatchTool parameters, branded as an
14 * OpenAI provider tool.
15 */
16export function applyPatchTool(): OpenAIApplyPatchTool {
17 return baseApplyPatchTool() as OpenAIApplyPatchTool
18}