Ai
AIChat
AI chat interface for interacting with configured agents from the admin panel.
AIChat
Renders a full-featured chat interface for sending messages to AI agents, with streaming response support, message history, agent selector, and a clear conversation control.
Components
<XAdminAIChat />
Displays a chat UI with message thread, streaming text rendering, agent picker, and compose input for admin AI interactions.
<XAdminAIChat />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
agentId | string | undefined | Pre-select a specific agent on load |
endpoint | string | '/api/admin/ai' | Base API endpoint for chat |
loading | boolean | false | Show loading skeleton |
streaming | boolean | true | Enable streaming response display |
showAgentSelector | boolean | true | Allow switching agents mid-conversation |
placeholder | string | 'Message the agent...' | Compose input placeholder text |
AI Context
component: XAdminAIChat
package: "@xenterprises/nuxt-x-app-admin"
category: AI
use-when: Providing a chat interface to interact with AI agents from within an admin panel
