Skip to content

latent.serve

latent[serve] — standalone HTTP serving for agents.

Houses the per-request auth seam (:mod:latent.serve.auth), the FastAPI AgentServer + serve() core, the registration client, and the latent serve CLI. Submodules are imported lazily by their consumers so that latent.serve.auth (the studio_contracts signer plus latent's nonce-store config) stays importable without pulling FastAPI/uvicorn.

The one eager-ish public name is :class:~latent.serve.protocol.ServingProtocol, re-exported lazily via :pep:562 so from latent.serve import ServingProtocol works without importing the FastAPI-bearing submodules.