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 convertApplyPatchToolToAdapterFormat,
7} from '@tanstack/openai-base'
8
9export type OpenAIApplyPatchTool = ProviderTool<'openai', 'apply_patch'>
10
11/**
12 * Creates a standard Tool from ApplyPatchToolConfig parameters, branded as an
13 * OpenAI provider tool.
14 */
15export function applyPatchTool(): OpenAIApplyPatchTool {
16 return baseApplyPatchTool() as OpenAIApplyPatchTool
17}