Skip to content
Source
Sign inSign up
TanStack/ai

docs: type-check the package READMEs and fix their broken examples #1981

MergedArVaViT(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/1981/headmerged by AlemTuzlak View on GitHub

Showing 51 changed files with 107 additions and 51 deletions (loading 49).

x
0 of 51 viewed, 51 left
1 addition and 0 deletionspackages/ai/README.mdModified
View file
@@ -165,6 +165,7 @@
```typescript
import { toolDefinition } from '@tanstack/ai'
import { z } from 'zod'
+import { db } from './db'
​
const getProducts = toolDefinition({
name: 'getProducts',
106 additions and 51 deletionspackages/ai-acp/README.mdModified
View file
@@ -182,6 +182,7 @@
​
```typescript
import { chat } from '@tanstack/ai'
+import type { TextOptions } from '@tanstack/ai'
import {
AsyncQueue,
resolveInteractivePermission,
@@ -189,58 +190,69 @@
startAcpSession,
translateAcpStream,
} from '@tanstack/ai-acp'
+import type {
+ AcpCompatibleProviderOptions,
+ AcpStreamEvent,
+} from '@tanstack/ai-acp'
import { withSandbox } from '@tanstack/ai-sandbox'