``` feat: add AI SDK dependencies and refine agent voice interaction config - Add @ai-sdk packages for enhanced AI capabilities - Install Deepgram SDK, livekit-client, and werift for voice/WebRTC - Expand agent system prompt with multi-tool workflows and Claude Code interaction patterns - Adjust VAD timing (1.2s silence threshold) and turn detection for better voice UX - Switch TTS to inworld/inworld-tts-1 with Olivia voice - Configure interruption timing (0.2s detection, no word requirement) - Add comprehensive guidelines for conversational responses vs structured output - Document plan mode triggers and Claude response type handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> ```
53 lines
1.6 KiB
Bash
Executable File
53 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Test script for LLM integration
|
|
# This script demonstrates how to use the /api/test-llm endpoint
|
|
|
|
echo "Testing LLM Integration"
|
|
echo "======================"
|
|
echo ""
|
|
|
|
# Check if server is running
|
|
if ! curl -s http://localhost:3000/api/health > /dev/null; then
|
|
echo "❌ Server is not running on port 3000"
|
|
echo "Please start the server with: npm start"
|
|
exit 1
|
|
fi
|
|
|
|
echo "✓ Server is running"
|
|
echo ""
|
|
|
|
# Test 1: Create a terminal
|
|
echo "Test 1: Create a terminal called 'llm-test'"
|
|
echo "--------------------------------------------"
|
|
curl -s -X POST http://localhost:3000/api/test-llm \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"message": "create a terminal called llm-test"}' | jq .
|
|
echo ""
|
|
|
|
# Test 2: List all terminals
|
|
echo ""
|
|
echo "Test 2: List all terminals"
|
|
echo "--------------------------"
|
|
curl -s -X POST http://localhost:3000/api/test-llm \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"message": "list all terminals"}' | jq .
|
|
echo ""
|
|
|
|
# Test 3: Run a command in the terminal
|
|
echo ""
|
|
echo "Test 3: Run 'echo hello from LLM' in the llm-test terminal"
|
|
echo "-----------------------------------------------------------"
|
|
curl -s -X POST http://localhost:3000/api/test-llm \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"message": "run echo \"hello from LLM\" in the llm-test terminal"}' | jq .
|
|
echo ""
|
|
|
|
echo ""
|
|
echo "✓ All tests completed!"
|
|
echo ""
|
|
echo "Note: You can also test manually with:"
|
|
echo "curl -X POST http://localhost:3000/api/test-llm \\"
|
|
echo " -H 'Content-Type: application/json' \\"
|
|
echo " -d '{\"message\": \"your message here\"}' | jq ."
|