Module livekit.agents.ipc.job_executor
Classes
class JobExecutor (*args, **kwargs)
-
Base class for protocol classes.
Protocol classes are defined as::
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example::
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as::
class GenProto[T](Protocol): def meth(self) -> T: ...
Expand source code
class JobExecutor(Protocol): @property def started(self) -> bool: ... @property def start_arguments(self) -> Any | None: ... @start_arguments.setter def start_arguments(self, value: Any | None) -> None: ... @property def running_job(self) -> RunningJobInfo | None: ... async def start(self) -> None: ... async def join(self) -> None: ... async def initialize(self) -> None: ... async def aclose(self) -> None: ... async def launch_job(self, info: RunningJobInfo) -> None: ...
Ancestors
- typing.Protocol
- typing.Generic
Instance variables
prop running_job : RunningJobInfo | None
-
Expand source code
@property def running_job(self) -> RunningJobInfo | None: ...
prop start_arguments : Any | None
-
Expand source code
@property def start_arguments(self) -> Any | None: ...
prop started : bool
-
Expand source code
@property def started(self) -> bool: ...
Methods
async def aclose(self) ‑> None
async def initialize(self) ‑> None
async def join(self) ‑> None
async def launch_job(self, info: RunningJobInfo) ‑> None
async def start(self) ‑> None