IOConsole
autogen.io.IOConsole #
Bases: IOStream
A console input/output stream.
set_global_default staticmethod
#
Set the default input/output stream.
PARAMETER | DESCRIPTION |
---|---|
stream | The input/output stream to set as the default. TYPE: |
get_global_default staticmethod
#
Get the default input/output stream.
RETURNS | DESCRIPTION |
---|---|
IOStream | The default input/output stream. TYPE: |
Source code in autogen/io/base.py
get_default staticmethod
#
Get the default input/output stream.
RETURNS | DESCRIPTION |
---|---|
IOStream | The default input/output stream. TYPE: |
Source code in autogen/io/base.py
set_default staticmethod
#
Set the default input/output stream.
PARAMETER | DESCRIPTION |
---|---|
stream | The input/output stream to set as the default. TYPE: |
Source code in autogen/io/base.py
print #
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/console.py
send #
Send a message to the output stream.
PARAMETER | DESCRIPTION |
---|---|
message | The message to send. TYPE: |
input #
Read a line from the input stream.
PARAMETER | DESCRIPTION |
---|---|
prompt | The prompt to display. Defaults to "". TYPE: |
password | Whether to read a password. Defaults to False. TYPE: |
RETURNS | DESCRIPTION |
---|---|
str | The line read from the input stream. TYPE: |