SandboxProcessExecEventOutput

class baseten.sandbox.SandboxProcessExecEventOutput(*, stream, text)

Bases: object

Output from SandboxProcess.exec_stream().

As the process wrote it, which may hold several lines, part of one, or text with no newline at all, such as a prompt. If the process finished before streaming started, each line instead arrives as its own event, without its newline.

Parameters:
stream: Literal['stdout', 'stderr']

Which output the text came from.