-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_asterix.py
More file actions
36 lines (29 loc) · 1.02 KB
/
Copy pathtest_asterix.py
File metadata and controls
36 lines (29 loc) · 1.02 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
from asterix import Agent, BlockConfig
import os
def test_asterix():
"""Test basic Asterix functionality"""
print("Testing Asterix installation...")
# Test without Qdrant (core features only)
try:
agent = Agent(
agent_id="test_agent",
blocks={
"test_block": BlockConfig(size=1000, priority=1)
},
model="openai/gpt-oss-120b" # Using Groq model
)
print("✓ Asterix agent created successfully")
# Test memory operations
agent.update_memory("test_block", "Test content")
memory = agent.get_memory()
print(f"✓ Memory operations working: {memory['test_block']}")
# Test state persistence
agent.save_state()
print("✓ State persistence working")
print("\n✅ Asterix is ready to integrate!")
return True
except Exception as e:
print(f"❌ Error: {e}")
return False
if __name__ == "__main__":
test_asterix()