Module livekit.agents.utils.misc
Functions
def is_given(obj: NotGivenOr[_T]) ‑> TypeGuard[~_T]
-
Expand source code
def is_given(obj: NotGivenOr[_T]) -> TypeGuard[_T]: return not isinstance(obj, NotGiven)
def shortuuid(prefix: str = '') ‑> str
-
Expand source code
def shortuuid(prefix: str = "") -> str: return prefix + str(uuid.uuid4().hex)[:12]
def time_ms() ‑> int
-
Expand source code
def time_ms() -> int: return int(time.time() * 1000 + 0.5)