MCPcopy Index your code
hub / github.com/TanStack/ai / getCodeModeTools

Function getCodeModeTools

packages/ai-code-mode/models-eval/run-eval.ts:179–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177} | null = null
178
179function getCodeModeTools() {
180 if (!codeModeCache) {
181 const driver = createNodeIsolateDriver()
182 const { tool, systemPrompt } = createCodeMode({
183 driver,
184 tools: databaseTools,
185 timeout: 60000,
186 memoryLimit: 128,
187 })
188 codeModeCache = { tool, systemPrompt }
189 }
190 return codeModeCache
191}
192
193function getTextAdapter(
194 provider: EvalProvider,

Callers 1

mainFunction · 0.70

Calls 2

createNodeIsolateDriverFunction · 0.90
createCodeModeFunction · 0.90

Tested by

no test coverage detected