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

middleware-test-tools.ts

9 lines312 Bytes

1import { toolDefinition } from '@tanstack/ai'
2import { z } from 'zod'
3​
4export const clientContextToolDefinition = toolDefinition({
5 name: 'get_client_context',
6 description: 'Get context that is only available in the browser',
7 inputSchema: z.object({}),
8 outputSchema: z.object({ context: z.string() }),
9})