Ask a question to get started
Enter to sendā¢Shift+Enter new line
on_custom_event( self, name: str, data: Any, *, run_id: UUID,
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
None
metadata
dict[str, Any] | None
Override to define a handler for custom events.
The tags associated with the custom event (includes inherited tags).
The metadata associated with the custom event (includes inherited metadata).