langsmith.run_trees.RunTree.add_event#

RunTree.add_event(events: RunEvent | Sequence[RunEvent] | Sequence[dict] | dict | str) None[source]#

Add an event to the list of events.

Parameters:
  • (Union[ls_schemas.RunEvent (events) – Sequence[dict], dict, str]): The event(s) to be added. It can be a single event, a sequence of events, a sequence of dictionaries, a dictionary, or a string.

  • Sequence[ls_schemas.RunEvent] – Sequence[dict], dict, str]): The event(s) to be added. It can be a single event, a sequence of events, a sequence of dictionaries, a dictionary, or a string.

  • events (RunEvent | Sequence[RunEvent] | Sequence[dict] | dict | str) –

Return type:

None

:paramSequence[dict], dict, str]):

The event(s) to be added. It can be a single event, a sequence of events, a sequence of dictionaries, a dictionary, or a string.

Returns:

None

Parameters:

events (RunEvent | Sequence[RunEvent] | Sequence[dict] | dict | str) –

Return type:

None