Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
kwargs is the event payload — an opaque JSON object whose shape depends on
name and on the emitting SDK. For example LangChain emits {"token": {...}}
for new_token events, tool-call start/end details for tool events, and
arbitrary user-defined payloads for custom events. Clients should treat kwargs
as untyped JSON: do not assume specific keys exist for a given name, and
tolerate additional unknown keys appearing over time.
name is the event kind.
Common values emitted by the LangChain/LangSmith tracer SDKs include "start",
"end", and "new_token", but applications may emit arbitrary strings for
their own instrumentation.
time is when the event occurred (RFC3339 date-time with millisecond
precision).