View module source on GitHubDocumentation Index
Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Tracing and instrumentation utilities for Langchain integration.
View module source on GitHubDocumentation Index
Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
class MaximLangchainTracer(BaseCallbackHandler)
def __init__(logger: Logger,
metadata: Optional[Dict[str, Any]] = None,
eval_config: Optional[Dict[str, List[str]]] = None) -> None
def on_llm_start(serialized: dict[str, Any],
prompts: list[str],
*,
run_id: UUID,
parent_run_id: Optional[UUID] = None,
tags: Optional[list[str]] = None,
metadata: Optional[dict[str, Any]] = None,
**kwargs: Any) -> Any
def on_chat_model_start(serialized: Dict[str, Any],
messages: List[List[BaseMessage]],
metadata: Optional[Dict[str, Any]] = None,
**kwargs: Any) -> Any
def on_llm_new_token(token: str, **kwargs: Any) -> Any
def on_llm_end(response: LLMResult, **kwargs: Any) -> Any
def on_llm_error(error: Union[Exception, BaseException, KeyboardInterrupt],
**kwargs: Any) -> Any
def on_retriever_start(serialized: dict[str, Any],
query: str,
*,
run_id: UUID,
parent_run_id: Optional[UUID] = None,
tags: Optional[list[str]] = None,
metadata: Optional[dict[str, Any]] = None,
**kwargs: Any) -> Any
Was this page helpful?