forked from cleveragents/cleveragents-core
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# Test the multi-agent paper writer
|
|
# Tests: multi_agent_paper_writer.yaml
|
|
|
|
# Change to project root
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
# Check for API key
|
|
if [ -z "$OPENAI_API_KEY" ]; then
|
|
echo "Error: OPENAI_API_KEY environment variable not set"
|
|
echo "Usage: export OPENAI_API_KEY='your-key-here'"
|
|
exit 1
|
|
fi
|
|
|
|
echo "=========================================="
|
|
echo "Multi-Agent Paper Writer Test"
|
|
echo "=========================================="
|
|
echo ""
|
|
echo "This will simulate a conversation with multiple agents:"
|
|
echo " 1. RESEARCHER gathers requirements"
|
|
echo " 2. WRITER creates the paper"
|
|
echo " 3. Natural handoffs between agents"
|
|
echo ""
|
|
echo "Starting test..."
|
|
echo ""
|
|
|
|
cat << 'EOF' | timeout 120 python -m cleveragents interactive -c examples/multi_agent_paper_writer.yaml --unsafe 2>&1 | grep -v "^\[" | head -100
|
|
hello
|
|
I want to write a paper about quantum entanglement
|
|
my target audience is researchers in quantum physics
|
|
yes, write the paper
|
|
exit
|
|
EOF
|
|
|
|
echo ""
|
|
echo "=========================================="
|
|
echo "Test Complete!"
|
|
echo "=========================================="
|
|
|
|
|