BaseCallbackHandler
new MaximLangchainTracer(Defined in: src/lib/logger/langchain/tracer.ts:87 Creates a new MaximLangchainTracer instance.logger
,input?
):MaximLangchainTracer
MaximLogger
The Maxim logger instance to use for tracing
BaseCallbackHandlerInput
Optional LangChain callback handler configuration
MaximLangchainTracer
BaseCallbackHandler.constructor
Defined in: src/lib/logger/langchain/tracer.ts:66readonly
name:"MaximLangchainTracer"
="MaximLangchainTracer"
BaseCallbackHandler.name
handleChainEnd(Defined in: src/lib/logger/langchain/tracer.ts:226 Called at the end of a Chain run, with the outputs and the run ID.outputs
,runId
,_parentRunId?
,tags?
,_kwargs?
):void
ChainValues
string
string
string
[]
void
BaseCallbackHandler.handleChainEnd
handleChainError(Defined in: src/lib/logger/langchain/tracer.ts:252 Called if a Chain run encounters an errorerr
,runId
,_parentRunId?
,tags?
):void
any
string
string
string
[]
void
BaseCallbackHandler.handleChainError
handleChainStart(Defined in: src/lib/logger/langchain/tracer.ts:156 Called at the start of a Chain run, with the chain name and inputs and the run ID._chain
,inputs
,runId
,parentRunId?
,tags?
,metadata?
,_runType?
,runName?
):void
Serialized
ChainValues
string
string
string
[]
Record
<string
, unknown
>
string
string
void
BaseCallbackHandler.handleChainStart
handleChatModelStart(Defined in: src/lib/logger/langchain/tracer.ts:412 Called at the start of a Chat Model run, with the prompt(s) and the run ID.llm
,messages
,runId
,parentRunId?
,extraParams?
,tags?
,metadata?
,runName?
):Promise
<void
>
Serialized
BaseMessage
[][]
string
string
Record
<string
, unknown
>
string
[]
Record
<string
, unknown
>
string
Promise
<void
>
BaseCallbackHandler.handleChatModelStart
handleLLMEnd(Defined in: src/lib/logger/langchain/tracer.ts:353 Called at the end of an LLM/ChatModel run, with the output and the run ID.output
,runId
,parentRunId?
,tags?
):void
LLMResult
string
string
string
[]
void
BaseCallbackHandler.handleLLMEnd
handleLLMError(Defined in: src/lib/logger/langchain/tracer.ts:383 Called if an LLM/ChatModel run encounters an errorerr
,runId
,parentRunId?
,tags?
):void
any
string
string
string
[]
void
BaseCallbackHandler.handleLLMError
handleLLMStart(Defined in: src/lib/logger/langchain/tracer.ts:277 Called at the start of an LLM or Chat Model run, with the prompt(s) and the run ID.llm
,prompts
,runId
,parentRunId?
,extraParams?
,tags?
,metadata?
,name?
):Promise
<void
>
Serialized
string
[]
string
string
Record
<string
, unknown
>
string
[]
Record
<string
, unknown
>
string
Promise
<void
>
BaseCallbackHandler.handleLLMStart
handleRetrieverEnd(Defined in: src/lib/logger/langchain/tracer.ts:534documents
,runId
,parentRunId?
,tags?
):void
DocumentInterface
<Record
<string
, any
>>[]
string
string
string
[]
void
BaseCallbackHandler.handleRetrieverEnd
handleRetrieverStart(Defined in: src/lib/logger/langchain/tracer.ts:488_retriever
,query
,runId
,parentRunId?
,tags?
,metadata?
,name?
):void
Serialized
string
string
string
string
[]
Record
<string
, unknown
>
string
void
BaseCallbackHandler.handleRetrieverStart
handleToolEnd(Defined in: src/lib/logger/langchain/tracer.ts:609 Called at the end of a Tool run, with the tool output and the run ID.output
,runId
,parentRunId?
,tags?
):void
any
string
string
string
[]
void
BaseCallbackHandler.handleToolEnd
handleToolError(Defined in: src/lib/logger/langchain/tracer.ts:665 Called if a Tool run encounters an errorerror
,runId
,parentRunId?
,tags?
):void
any
string
string
string
[]
void
BaseCallbackHandler.handleToolError
handleToolStart(Defined in: src/lib/logger/langchain/tracer.ts:562 Called at the start of a Tool run, with the tool name and input and the run ID.tool
,input
,runId
,parentRunId?
,tags?
,metadata?
,runName?
):void
Serialized
string
string
string
string
[]
Record
<string
, unknown
>
string
void
BaseCallbackHandler.handleToolStart