Spaces:
Sleeping
Sleeping
Delete orchestrator.py
Browse files- orchestrator.py +0 -18
orchestrator.py
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
from telemetry import log_event
|
| 2 |
-
from memory_core import update_memory
|
| 3 |
-
from context_memory import ContextMemoryGraph
|
| 4 |
-
|
| 5 |
-
class Orchestrator:
|
| 6 |
-
def __init__(self):
|
| 7 |
-
self.graph = ContextMemoryGraph()
|
| 8 |
-
|
| 9 |
-
def route(self, agent, prompt):
|
| 10 |
-
log_event(agent.agent_id, "route_start", "in_progress", {"prompt": prompt})
|
| 11 |
-
context = self.graph.get_context(agent.agent_id)
|
| 12 |
-
if "last_response" in context:
|
| 13 |
-
prompt = f"{context['last_response']} -> {prompt}"
|
| 14 |
-
|
| 15 |
-
response = agent.run(prompt)
|
| 16 |
-
self.graph.link_context(agent.agent_id, "last_response", response)
|
| 17 |
-
log_event(agent.agent_id, "route_complete", "success", {"response": response})
|
| 18 |
-
return response
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|