23 lines
622 B
Python
23 lines
622 B
Python
"""
|
|
---
|
|
title: Real-time Learning
|
|
description: Allows Timmy to learn about any topic in real-time using Google Search and persist it to his sovereign memory.
|
|
conditions:
|
|
- New information required
|
|
- Real-time events or trends
|
|
- Knowledge base expansion
|
|
---
|
|
"""
|
|
|
|
from agent.knowledge_ingester import KnowledgeIngester
|
|
|
|
def learn(topic: str) -> str:
|
|
"""
|
|
Performs real-time learning on a topic and updates Timmy's memory.
|
|
|
|
Args:
|
|
topic: The topic to learn about (e.g., 'recent advancements in quantum computing').
|
|
"""
|
|
ingester = KnowledgeIngester()
|
|
return ingester.learn_about(topic)
|