Allow setting stream_emitter directly.
This is a method of the Agent class in the agent module.
def stream_emitter(value: Any) -> Any