Run when the Retriever starts running.
on_retriever_start(
self,
serialized: dict[str, Any],
query: str,
*,
run_id: UUID,
parent_run_id: UUID | None = None,
tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
name: str | None = None,
**kwargs: Any = {}
) -> Run| Name | Type | Description |
|---|---|---|
serialized* | dict[str, Any] | The serialized retriever. |
query* | str | The query. |
run_id* | UUID | The run ID. |
parent_run_id | UUID | None | Default: NoneThe parent run ID. |
tags | list[str] | None | Default: NoneThe tags for the run. |
metadata | dict[str, Any] | None | Default: NoneThe metadata for the run. |
name | str | None | Default: NoneThe name of the run. |
**kwargs | Any | Default: {}Additional arguments. |