PermitechCallback
Langchain callback handler for logging traces to the Permitech platform. Arguments_handler(PermitechBaseHandler): The handler for managing the trace.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
_handler (PermitechBaseHandler): The handler for managing the trace.def on_agent_finish(self, finish: AgentFinish, *, run_id: UUID, **kwargs: Any) -> Any
def on_chain_end(self,
outputs: dict[str, Any],
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def on_chain_error(self,
error: Exception,
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def on_chain_start(self,
serialized: dict[str, Any],
inputs: dict[str, Any],
*,
run_id: UUID,
parent_run_id: UUID | None=None,
tags: list[str] | None=None,
**kwargs: Any) -> Any
def on_chat_model_start(self,
serialized: dict[str, Any],
messages: list[list[BaseMessage]],
*,
run_id: UUID,
parent_run_id: UUID | None=None,
tags: list[str] | None=None,
metadata: dict[str, Any] | None=None,
**kwargs: Any) -> Any
def on_llm_end(self,
response: LLMResult,
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def on_llm_error(self,
error: Exception,
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def on_llm_new_token(self, token: str, *, run_id: UUID, **kwargs: Any) -> Any
def on_llm_start(self,
serialized: dict[str, Any],
prompts: list[str],
*,
run_id: UUID,
parent_run_id: UUID | None=None,
tags: list[str] | None=None,
metadata: dict[str, Any] | None=None,
**kwargs: Any) -> Any
def on_retriever_end(self,
documents: list[Document],
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def on_retriever_error(self,
error: Exception,
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def 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,
**kwargs: Any) -> Any
def on_tool_end(self,
output: Any,
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def on_tool_error(self,
error: Exception,
*,
run_id: UUID,
parent_run_id: UUID | None=None,
**kwargs: Any) -> Any
def on_tool_start(self,
serialized: dict[str, Any],
input_str: str,
*,
run_id: UUID,
parent_run_id: UUID | None=None,
tags: list[str] | None=None,
metadata: dict[str, Any] | None=None,
**kwargs: Any) -> Any
Was this page helpful?
