Skip to content

Chat Interface#22

Merged
MFA-X-AI merged 2 commits intomainfrom
fahreza/chat-interface
Feb 11, 2026
Merged

Chat Interface#22
MFA-X-AI merged 2 commits intomainfrom
fahreza/chat-interface

Conversation

@MFA-X-AI
Copy link
Member

Dev Chat Interface

A simple chat interface for testing agents during development without using curl.

image

What Was Added

  • Backend: POST /api/ui/chat/{agent_id} endpoint for simple chat completions
  • Frontend: Chat page at /agents/{id}/chat with message history UI
  • Persistence: Conversation persists while navigating (sessionStorage) with clear button
  • UI Components: Uses existing shadcn-svelte chat components

How to Use

  1. Run xaibo dev to start the development server
  2. Open the UI at http://127.0.0.1:9001
  3. Select an agent and click "Chat" in the sidebar
  4. Send messages and see responses

Your chat history is preserved while you navigate to other views (like the event sequence viewer) and will be cleared when you close the browser tab.


Implementation Notes

ExchangeConfig Renaming

During implementation, the GraphQL ExchangeConfig type in ui.py was renamed to ExchangeConfigGQL to avoid shadowing the core ExchangeConfig class from xaibo.core.config. This ensures clean imports without aliasing:

from xaibo import Xaibo, ConfigOverrides, ExchangeConfig  # core config class
# GraphQL type is now ExchangeConfigGQL

@MFA-X-AI MFA-X-AI requested a review from treo February 10, 2026 03:21
@MFA-X-AI MFA-X-AI merged commit 2d1c056 into main Feb 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants