new • Rust AI Agent SDK

new: Create a new stream event

new

Method

</div>

This is a method of the StreamEvent class in the streaming module.

Create a new stream event

Signature

python
def new(event_type: StreamEventType) -> Self

Parameters

ParamField StreamEventType

No description available.

Returns

ResponseField Self

The result of the operation.