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/ai-react-devtools package:
npm install @tanstack/ai-react-devtools
npm install @tanstack/ai-react-devtools
Or the @tanstack/ai-solid-devtools package for SolidJS:
npm install @tanstack/ai-solid-devtools
npm install @tanstack/ai-solid-devtools
Import and include the Devtools component in your application:
import { aiDevtoolsPlugin } from '@tanstack/ai-react-devtools'
const App = () => {
return (
<>
<TanStackDevtools
plugins={[
// ... other plugins
aiDevtoolsPlugin(),
]}
// this config is important to connect to the server event bus
eventBusConfig={{
connectToServerBus: true,
}}
/>
</>
)
}
import { aiDevtoolsPlugin } from '@tanstack/ai-react-devtools'
const App = () => {
return (
<>
<TanStackDevtools
plugins={[
// ... other plugins
aiDevtoolsPlugin(),
]}
// this config is important to connect to the server event bus
eventBusConfig={{
connectToServerBus: true,
}}
/>
</>
)
}
