Skip to content

StreamTransport

🛈 DocStrings

Configuration for custom stream transport.

Allows passing pre-created streams for the agent to use.

Attributes:

Name Type Description
reader ByteReceiveStream

Stream to read incoming messages from.

writer ByteSendStream

Stream to write outgoing messages to.

Source code in src/aclientp/transports.py
@dataclass
class StreamTransport:
    """Configuration for custom stream transport.

    Allows passing pre-created streams for the agent to use.

    Attributes:
        reader: Stream to read incoming messages from.
        writer: Stream to write outgoing messages to.
    """

    reader: ByteReceiveStream
    writer: ByteSendStream

:fa-brands-github: Show source on GitHub