Skip to content

OutputStream

autogen.io.OutputStream #

Bases: Protocol

print #

print(*objects, sep=' ', end='\n', flush=False)

Print data to the output stream.

    Args:
        objects (any): The data to print.
        sep (str, optional): The separator between objects. Defaults to " ".
        end (str, optional): The end of the output. Defaults to "

". flush (bool, optional): Whether to flush the output. Defaults to False.

Source code in autogen/io/base.py
def print(self, *objects: Any, sep: str = " ", end: str = "\n", flush: bool = False) -> None:
    """Print data to the output stream.

    Args:
        objects (any): The data to print.
        sep (str, optional): The separator between objects. Defaults to " ".
        end (str, optional): The end of the output. Defaults to "\n".
        flush (bool, optional): Whether to flush the output. Defaults to False.
    """
    ...  # pragma: no cover

send #

send(message)

Send data to the output stream.

PARAMETER DESCRIPTION
message

BaseMessage from autogen.messages.base_message

TYPE: BaseMessage

Source code in autogen/io/base.py
def send(self, message: BaseMessage) -> None:
    """Send data to the output stream.

    Args:
        message (BaseMessage): BaseMessage from autogen.messages.base_message
    """
    ...