IONats
fastagency.studio.io.ionats.IONats #
Bases: IOStream
Initialize the IO class.
Source code in fastagency/studio/io/ionats.py
create async
classmethod
#
create(
user_id: Union[str, UUID],
thread_id: Union[str, UUID],
deployment_id: Optional[
Union[str, UUID]
] = "playground",
) -> IONats
Source code in fastagency/studio/io/ionats.py
handle_input async
#
handle_input(
body: InputResponseModel,
msg: NatsMessage,
logger: Logger,
) -> None
input #
Read a line from the input stream.
RETURNS | DESCRIPTION |
---|---|
str | The line read from the input stream. TYPE: |
Source code in fastagency/studio/io/ionats.py
print #
Print data to the output stream.