TanStack Devtools is a unified devtools panel for inspecting and debugging TanStack libraries, including TanStack AI. It provides real-time insights into AI interactions, tool calls, and state changes, making it easier to develop and troubleshoot AI-powered applications.
To use TanStack Devtools with TanStack AI, install the @tanstack/react-ai-devtools package:
npm install -D @tanstack/react-ai-devtools @tanstack/react-devtools
npm install -D @tanstack/react-ai-devtools @tanstack/react-devtools
Or the @tanstack/solid-ai-devtools package for SolidJS:
npm install -D @tanstack/solid-ai-devtools @tanstack/solid-devtools
npm install -D @tanstack/solid-ai-devtools @tanstack/solid-devtools
Import and include the Devtools component in your application:
import { TanStackDevtools } from '@tanstack/react-devtools'
import { aiDevtoolsPlugin } from '@tanstack/react-ai-devtools'
const App = () => {
return (
<>
<TanStackDevtools
plugins={[
// ... other plugins
aiDevtoolsPlugin(),
]}
// this config is important to connect to the server event bus
eventBusConfig={{
connectToServerBus: true,
}}
/>
</>
)
}
import { TanStackDevtools } from '@tanstack/react-devtools'
import { aiDevtoolsPlugin } from '@tanstack/react-ai-devtools'
const App = () => {
return (
<>
<TanStackDevtools
plugins={[
// ... other plugins
aiDevtoolsPlugin(),
]}
// this config is important to connect to the server event bus
eventBusConfig={{
connectToServerBus: true,
}}
/>
</>
)
}
