{messages.map(m => (
);
}
```
### 2. Framework Adapters
```typescript
// Vue
import { useChatVue } from '@ainative/ai-kit/vue';
// Svelte
import { chatStore } from '@ainative/ai-kit/svelte';
// Vanilla JS
import { createChat } from '@ainative/ai-kit/core';
```
## Advanced Capabilities
- **Streaming Responses**: Real-time AI output
- **Function Calling**: Tool use and API integration
- **State Management**: Built-in state handling
- **Error Recovery**: Automatic retries and fallbacks
## Integration Examples
Works with:
- Next.js / React
- Nuxt / Vue
- SvelteKit
- Node.js
- Deno
- Cloudflare Workers
Choose your stack, keep your AI logic portable with AI Kit!
{m.content}
))}