You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add endpoints and handlers to manage Chat and ChatMessage entities, following existing patterns in the codebase. The endpoints will provide operations for chat creation, message sending, history retrieval, and response processing.
Add Chat Management Endpoints and Handlers
Description
Add endpoints and handlers to manage Chat and ChatMessage entities, following existing patterns in the codebase. The endpoints will provide operations for chat creation, message sending, history retrieval, and response processing.
Implementation Details
1. Update routes/chat.go
2. Add Handler Functions in handlers/chat.go
NewChatHandler
constructorChatResponse
struct for consistent response formattingCreateChat
: Create new chat sessionsSendMessage
: Send messages to stakwork (stub out)GetChatHistory
: Retrieve chat historyProcessChatResponse
: Handle Stakwork responses (stub out)3. Use DB Interface in db/chat.go
Required Features
Task List
Acceptance Criteria
API Endpoints
POST /chat
Create a new chat session
POST /chat/send
Send a message in an existing chat
GET /chat/history/{uuid}
Retrieve chat history
POST /chat/response
Process Stakwork responses (public endpoint)
The text was updated successfully, but these errors were encountered: