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

Function clientTool

packages/ai/tests/test-utils.ts:265–274  ·  view source on GitHub ↗
(
  name: string,
  opts?: { needsApproval?: boolean },
)

Source from the content-addressed store, hash-verified

263
264/** Client tool (no execute function). */
265export function clientTool(
266 name: string,
267 opts?: { needsApproval?: boolean },
268): Tool {
269 return {
270 name,
271 description: `Client tool: ${name}`,
272 needsApproval: opts?.needsApproval,
273 }
274}

Callers 1

chat.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected