File size: 1,489 Bytes
2aa8b3a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | """Public server-core API for Distinct."""
# Before anything else, and deliberately above the other imports: importing
# `distinct_server.ui` runs this file first, and `ui.py` imports gradio at its
# own line 12. Gradio contacts api.gradio.app and huggingface.co when a Blocks
# is constructed, so the only place this can be switched off is ahead of that
# import. See distinct_protocol/telemetry.py for why it is a control here
# rather than a note in the README.
from distinct_protocol.telemetry import silence_third_party_telemetry
silence_third_party_telemetry()
from .control_plane import ControlPlane # noqa: E402
from .models import ( # noqa: E402
AgentCredential,
AgentView,
AuthenticationError,
CapacityError,
CleanupReport,
ConflictError,
ControlPlaneError,
ControlPlaneLimits,
ConversationView,
DependencyError,
JobView,
NoCompatibleAgentError,
NotFoundError,
PairingCode,
SessionView,
ValidationError,
)
from .security import canonical_request, sign_request # noqa: E402
__all__ = [
"AgentCredential",
"AgentView",
"AuthenticationError",
"CapacityError",
"CleanupReport",
"ConflictError",
"ControlPlane",
"ControlPlaneError",
"ControlPlaneLimits",
"ConversationView",
"DependencyError",
"JobView",
"NoCompatibleAgentError",
"NotFoundError",
"PairingCode",
"SessionView",
"ValidationError",
"canonical_request",
"sign_request",
]
|