Override to define a handler for a custom event.
on_custom_event(
self,
name: str,
data: Any,
*,
run_id: UUID,
tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
**kwargs: Any = {}
) -> Any| Name | Type | Description |
|---|---|---|
name* | str | The name of the custom event. |
data* | Any | The data for the custom event. Format will match the format specified by the user. |
run_id* | UUID | The ID of the run. |
tags | list[str] | None | Default: NoneThe tags associated with the custom event (includes inherited tags). |
metadata | dict[str, Any] | None | Default: NoneThe metadata associated with the custom event (includes inherited metadata). |