Ask a question to get started
Enter to sendā¢Shift+Enter new line
on_retriever_start( self, serialized: dict[str, Any], query: str, *,
serialized
dict[str, Any]
Serialized retriever descriptor with name and description.
name
description
query
str
The retriever query string.
run_id
UUID
Unique identifier for this retriever run.
parent_run_id
Optional[UUID]
None
metadata
Optional[dict[str, Any]]
**kwargs
Any
{}
Start a retriever span.
Creates an execute_tool span with tool_type=retriever and records the retriever query.
execute_tool
tool_type=retriever
Run ID of the parent chain, if any.
Metadata dict with thread_id, etc.
thread_id
Additional LangChain callback keyword arguments.