File size: 643 Bytes
13fe504 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """Model backends for the DataForge verified agent.
Backends expose a synchronous completion callable
``(messages, model, temperature) -> str`` so one agent loop can drive local or
hosted policies interchangeably.
"""
from __future__ import annotations
__all__ = ["DEFAULT_LOCAL_MODEL", "build_local_completion"]
def __getattr__(name: str) -> object:
"""Lazily expose the local backend without importing torch at package load."""
if name in {"DEFAULT_LOCAL_MODEL", "build_local_completion"}:
from dataforge.agent.backends import local
return getattr(local, name)
raise AttributeError(name)
|