new • Rust AI Agent SDK

new: Create a new context event.

new

Method

</div>

This is a method of the ContextEvent class in the trace module.

Create a new context event.

Signature

python
def new(event_type: ContextEventType, name: impl Into<String>) -> Self

Parameters

ParamField ContextEventType

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.