Skip to content

Class swarmauri_core.transports.ITransport.ITransport

swarmauri_core.transports.ITransport.ITransport

Bases: ABC

Capability-aware transport interface.

supports abstractmethod

supports()

Return the capability set advertised by the transport.

Source code in swarmauri_core/transports/ITransport.py
15
16
17
@abstractmethod
def supports(self) -> TransportCapabilities:
    """Return the capability set advertised by the transport."""

server abstractmethod

server(**bind_kwargs)

Return a context manager that starts the transport's server side.

Source code in swarmauri_core/transports/ITransport.py
19
20
21
@abstractmethod
def server(self, **bind_kwargs: Any) -> AbstractAsyncContextManager["ITransport"]:
    """Return a context manager that starts the transport's server side."""

client abstractmethod

client(**connect_kwargs)

Return a context manager that opens the transport's client side.

Source code in swarmauri_core/transports/ITransport.py
23
24
25
26
27
@abstractmethod
def client(
    self, **connect_kwargs: Any
) -> AbstractAsyncContextManager["ITransport"]:
    """Return a context manager that opens the transport's client side."""