Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:24:46 +08:00
commit 49178918d7
24 changed files with 3940 additions and 0 deletions

33
scripts/test-agent.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
# Run automated tests on ElevenLabs agent
set -e
AGENT_NAME="${1:-Support Agent}"
echo "Testing ElevenLabs agent: $AGENT_NAME"
# Check if CLI is installed
if ! command -v elevenlabs &> /dev/null; then
echo "Error: @elevenlabs/cli is not installed"
echo "Install with: npm install -g @elevenlabs/cli"
exit 1
fi
# Check if authenticated
if ! elevenlabs auth whoami &> /dev/null; then
echo "Not authenticated. Please login:"
elevenlabs auth login
fi
# Push tests to platform
if [ -f "tests.json" ]; then
echo "Deploying tests..."
elevenlabs tests push
fi
# Run agent tests
echo "Running tests for: $AGENT_NAME"
elevenlabs agents test "$AGENT_NAME"
echo "✓ Tests completed!"