WebSocket-based agent service with multi-turn conversation support.
npm installStart the server:
node index.jsThe server will start on port 3055 (or the PORT environment variable if set).
- Make sure the server is running
- Open
client.htmlin your browser - Type messages and press Enter or click Send
- Check the browser console to see responses
- Use the Reset button to clear conversation history
Connect to ws://localhost:3055
Send messages:
{ "prompt": "your message here" }Reset conversation:
{ "prompt": "reset", "reset": true }Responses:
{
"output": "agent response",
"threadId": "uuid",
"turnCount": 1
}