Infrastructure
These classes mirror the LiveKit infrastructure types used in agent entrypoints. On SignalWire, connection lifecycle and room management are handled automatically by the control plane, so these are lightweight stubs that maintain API compatibility.
JobContext
Mirrors a LiveKit JobContext. Provides access to the room and process objects,
and lifecycle methods that the entrypoint calls before starting a session.
Properties
room
A Room stub instance.
proc
A JobProcess instance with a userdata dict, populated by the
setup function if one was registered on
AgentServer.
Methods
connect
connect() -> None
No-op. SignalWire’s control plane handles connection lifecycle automatically. The agent connects when the platform invokes the SWML endpoint.
wait_for_participant
wait_for_participant(identity=None) -> None
No-op. SignalWire handles participant management automatically.
identity
Participant identity to wait for. Accepted for API compatibility.
JobProcess
Mirrors a LiveKit JobProcess. Used for prewarm and setup tasks. The setup
function registered on
AgentServer.setup_fnc
receives a JobProcess instance.
Properties
userdata
Arbitrary data dict for sharing state between the setup function and the entrypoint. Defaults to an empty dict.
Room
A stub representing the LiveKit room abstraction. On SignalWire, rooms are managed by the control plane and this object is a placeholder for API compatibility.
Properties
name
The room name. Always "livewire-room" in the current implementation.