IOStream

IOStream(*args, **kwargs)

A protocol for input/output streams.

Parameters:
NameDescription
*args
**kwargs

Static Methods

get_default

get_default() -> autogen.io.base.IOStream

Get the default input/output stream.

Returns: IOStream: The default input/output stream.

Returns:
TypeDescription
autogen.io.base.IOStreamIOStream: The default input/output stream.

get_global_default

get_global_default() -> autogen.io.base.IOStream

Get the default input/output stream.

Returns: IOStream: The default input/output stream.

Returns:
TypeDescription
autogen.io.base.IOStreamIOStream: The default input/output stream.

set_default

set_default(stream: ForwardRef('IOStream') | None) -> Iterator[None]

Set the default input/output stream.

Parameters:
NameDescription
streamThe input/output stream to set as the default.

Type: ForwardRef('IOStream') | None

set_global_default

set_global_default(stream: IOStream) -> None

Set the default input/output stream.

Parameters:
NameDescription
streamThe input/output stream to set as the default.

Type: IOStream