2025-09-06 22:07:38 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Check if a prompt argument was provided
|
|
|
|
|
if [ $# -eq 0 ]; then
|
|
|
|
|
echo "Error: Please provide a prompt as an argument"
|
|
|
|
|
echo "Usage: $0 \"your prompt here\""
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Get the prompt from the first argument
|
|
|
|
|
PROMPT="$1"
|
|
|
|
|
|
|
|
|
|
# Set debug mode for web tools
|
2025-08-04 00:14:16 -07:00
|
|
|
export WEB_TOOLS_DEBUG=true
|
|
|
|
|
|
2025-09-06 22:07:38 -07:00
|
|
|
# Run the agent with the provided prompt
|
2025-07-31 10:11:27 -07:00
|
|
|
python run_agent.py \
|
2025-09-06 22:07:38 -07:00
|
|
|
--query "$PROMPT" \
|
2025-07-31 10:11:27 -07:00
|
|
|
--max_turns 30 \
|
2025-10-02 20:05:09 +00:00
|
|
|
--model claude-sonnet-4-5-20250929 \
|
2025-09-10 00:43:55 -07:00
|
|
|
--base_url https://api.anthropic.com/v1/ \
|
2025-08-04 00:14:16 -07:00
|
|
|
--api_key $ANTHROPIC_API_KEY \
|
2025-10-06 03:17:58 +00:00
|
|
|
--save_trajectories
|