Skip to content

trulens.core.otel.client_hooks.models

trulens.core.otel.client_hooks.models

Client-neutral coding-agent hook event models.

Classes

HookEvent dataclass

A normalized event emitted by a coding-agent client.

Functions
to_dict
to_dict() -> Dict[str, Any]

Serialize the event for durable journaling.

from_dict classmethod
from_dict(value: Dict[str, Any]) -> 'HookEvent'

Deserialize an event from durable storage.

Functions

utc_now

utc_now() -> datetime

Return the current timezone-aware UTC time.