| """ |
| Stage 1 Quick Verification Test |
| Author: @mangubee |
| |
| Test that agent initialization and basic execution works. |
| """ |
|
|
| from src.agent import GAIAAgent |
| from src.config import Settings |
|
|
| print("\n" + "="*70) |
| print("Stage 1: Foundation Setup - Quick Verification") |
| print("="*70 + "\n") |
|
|
| |
| print("Test 1: Checking configuration...") |
| settings = Settings() |
| api_keys = settings.validate_api_keys() |
| print(f" API Keys configured:") |
| for service, is_set in api_keys.items(): |
| status = "β" if is_set else "β" |
| print(f" {status} {service}: {'SET' if is_set else 'NOT SET'}") |
| print(f" Default LLM: {settings.default_llm_model}") |
|
|
| |
| print("\nTest 2: Initializing GAIAAgent...") |
| try: |
| agent = GAIAAgent() |
| print(" β Agent initialized successfully") |
| except Exception as e: |
| print(f" β Agent initialization failed: {e}") |
| exit(1) |
|
|
| |
| print("\nTest 3: Processing test question...") |
| test_question = "What is the capital of France?" |
| try: |
| answer = agent(test_question) |
| print(f" Question: {test_question}") |
| print(f" Answer: {answer}") |
| print(" β Question processed successfully") |
| except Exception as e: |
| print(f" β Question processing failed: {e}") |
| exit(1) |
|
|
| print("\n" + "="*70) |
| print("β Stage 1 verification complete - All systems ready!") |
| print("="*70 + "\n") |
| print("Next steps:") |
| print("1. [Optional] Test Gradio UI locally: PYTHONPATH=. uv run python app.py") |
| print("2. Push to HF Space to test deployment") |
| print("3. Proceed to Stage 2: Tool Development") |
|
|