import json
from pathlib import Path
from zeon_sdk import DestinationRegistry, SemanticRouter

ROOT = Path(__file__).resolve().parents[2]
registry = DestinationRegistry.from_json(ROOT / "examples" / "destinations.json")
router = SemanticRouter(registry)
request = json.loads((ROOT / "examples" / "concept-mapping.json").read_text(encoding="utf-8"))
print(json.dumps(router.route(request), ensure_ascii=False, indent=2))
