IOWebsocketsName | Description |
---|---|
websocket | Type: autogen.io.websockets.ServerConnection |
Type | Description |
---|---|
IOStreamProtocol | AsyncIOStreamProtocol | IOStream: The default input/output stream. |
Type | Description |
---|---|
IOStreamProtocol | AsyncIOStreamProtocol | IOStream: The default input/output stream. |
Name | Description |
---|---|
prompt | The prompt to display. Defaults to "". Type: str Default: ” |
password | Whether to read a password. Defaults to False. Type: bool Default: False |
Type | Description |
---|---|
str | str: The line read from the input stream. |
Name | Description |
---|---|
*objects | Type: Any |
sep | The separator between objects. Defaults to ” ”. Type: str Default: ’ ‘ |
end | The end of the output. Defaults to “ Type: str Default: ‘\n’ |
flush | Whether to flush the output. Defaults to False. Type: bool Default: False |
Name | Description |
---|---|
host | The host to bind the server to. Defaults to “127.0.0.1”. Type: str Default: ‘127.0.0.1’ |
port | The port to bind the server to. Defaults to 8765. Type: int Default: 8765 |
on_connect | The function to be executed on client connection. Typically creates agents and initiate chat. Type: Callable[[ForwardRef(‘IOWebsockets’)], None] |
ssl_context | The SSL context to use for secure connections. Defaults to None. Type: ssl.SSLContext | None Default: None |
**kwargs | Type: Any |
Name | Description |
---|---|
message | The message to send. Type: BaseEvent |
Name | Description |
---|---|
stream | The input/output stream to set as the default. Type: IOStreamProtocol | AsyncIOStreamProtocol | None |
Name | Description |
---|---|
stream | The input/output stream to set as the default. Type: IOStreamProtocol | AsyncIOStreamProtocol |