-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_test.py
More file actions
44 lines (35 loc) Β· 1.26 KB
/
quick_test.py
File metadata and controls
44 lines (35 loc) Β· 1.26 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
"""
Quick test to see what KOSMOS is doing
"""
import sys
sys.path.insert(0, '/Users/carsonjohnson/Documents/KOSMOS')
from kosmos import Kosmos
def quick_test():
print("π§ͺ Quick KOSMOS Test")
print("=" * 30)
try:
# Initialize KOSMOS
print("π Initializing KOSMOS...")
kosmos = Kosmos()
print("β
KOSMOS initialized")
# Test one step
print("π Testing one step...")
messages, reward, done, info = kosmos.step()
print(f"β
Step completed!")
print(f"π Reward: {reward}")
print(f"π Done: {done}")
print(f"π Info: {info}")
print(f"π Messages: {len(messages)} messages")
# Show the last message if it's from AI
if messages and len(messages) > 1:
last_message = messages[-1]
print(f"π Last message type: {type(last_message).__name__}")
if hasattr(last_message, 'content'):
print(f"π Last message preview: {str(last_message.content)[:200]}...")
except Exception as e:
print(f"β Error: {e}")
import traceback
print(f"β Traceback: {traceback.format_exc()}")
if __name__ == "__main__":
quick_test()