Diomedes Git
updating to non-deprecated timezone usage. added quick check test, which passes. leaving it there for now in case i need to make sure no later changes break things
1b7e7a8
| from src.cluas_mcp.common.memory import AgentMemory | |
| # scored search | |
| memory = AgentMemory() | |
| memory.add_item( | |
| title="Corvid Tool Use in Urban Environments", | |
| doi="10.1234/test", | |
| snippet="Test abstract", | |
| mentioned_by="Test" | |
| ) | |
| # scoring works | |
| results = memory.search_title_scored("corvid tool") | |
| print(f"Found {len(results)} results") | |
| if results: | |
| print(f"Best match: {results[0]['title']}") | |
| print(f"Score: {results[0]['relevance_score']:.2f}") |