from core.agent import EdenAgent

print("=" * 60)
print("EDEN AUTONOMOUS TOOL TEST")
print("=" * 60)

eden = EdenAgent(model="llama3.1:8b")

# Test 1: List and interpret
print("\n1. List files and describe what you see:")
response = eden.chat("Use list_files to see what's in the current directory, then tell me about the project structure.")
print(f"Eden: {response}\n")

# Test 2: Read and summarize
print("\n2. Read README and summarize:")
response = eden.chat("Read the README.md file and give me a one-sentence summary of what this project does.")
print(f"Eden: {response}\n")

# Test 3: Create a file
print("\n3. Create a test file:")
response = eden.chat("Use bash_tool to create a file called 'eden_created_this.txt' with the text 'Hello from autonomous Eden!'")
print(f"Eden: {response}\n")

# Test 4: Verify creation
print("\n4. Verify the file exists:")
response = eden.chat("Check if eden_created_this.txt exists in the directory.")
print(f"Eden: {response}\n")

# Test 5: Read it back
print("\n5. Read the file you created:")
response = eden.chat("Read eden_created_this.txt and tell me what it says.")
print(f"Eden: {response}\n")

eden.save_session("full_tool_test")

print("=" * 60)
print("✅ FULL TOOL TEST COMPLETE")
print("=" * 60)
