Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

apply-patch-tool.ts

17 lines536 Bytes

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