mirror of
https://github.com/hanzoai/agent.git
synced 2026-09-11 21:08:51 +00:00
Consolidate all Hanzo agent infrastructure into one repo: - control-plane/: Go control plane server (was agents-new) - sdk/: Go, Python, TypeScript SDKs - deployments/: Docker, Kubernetes, Helm configs - Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest) - CI builds both SDK + control-plane images No more agentfield — everything is hanzoai/agent.
22 lines
445 B
Python
22 lines
445 B
Python
from hanzo_agents.agent_registry import (
|
|
set_current_agent,
|
|
get_current_agent_instance,
|
|
clear_current_agent,
|
|
)
|
|
|
|
|
|
class DummyAgent:
|
|
pass
|
|
|
|
|
|
def test_agent_registry_roundtrip():
|
|
clear_current_agent()
|
|
assert get_current_agent_instance() is None
|
|
|
|
agent = DummyAgent()
|
|
set_current_agent(agent)
|
|
assert get_current_agent_instance() is agent
|
|
|
|
clear_current_agent()
|
|
assert get_current_agent_instance() is None
|