Register the function. Keep the implementation private.
In the current Python surface, the decorator derives the callable schema. node.serve() connects to an already paired Runtime, starts the resident host, deploys the local binding, and reports ADVERTISE_PENDING. Check realm visibility and invokable readiness separately through the Runtime or product catalog.
Authorized callers invoke the interface. The Python process, loaded model, filesystem, and credentials remain on the host that owns them.
from easyremote import ComputeNode
node = ComputeNode()
@node.register
def embed_text(text: str) -> list[float]:
return model.embed(text)
node.serve()