File size: 893 Bytes
668ba52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
"""
Test script for the BasicAgent
"""
import sys
import os
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

# Add the project root to the Python path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from src.agent.basic_agent import BasicAgent

agent = BasicAgent()
graph = agent.graph

def main():
    print("Testing BasicAgent...")
    
    # Create the agent
    agent = BasicAgent()
    
    # Run the agent
    answer = agent("On June 6, 2023, an article by Carolyn Collins Petersen was published in Universe Today. This article mentions a team that produced a paper about their observations, linked at the bottom of the article. Find this paper. Under what NASA award number was the work performed by R. G. Arendt supported by?")
    print(f"Final answer: {answer}")

if __name__ == "__main__":
    main()