v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.14
LangChain.js
langchain-community/callbacks/handlers/lunary
LunaryHandler
Class LunaryHandler
Hierarchy (
view full
)
Toolkit
LunaryHandler
Implements
LunaryHandlerFields
Index
Constructors
constructor
Properties
lunary
name
Methods
handle
Chain
End
handle
Chain
Error
handle
Chain
Start
handle
Chat
Model
Start
handleLLMEnd
handleLLMError
handleLLMStart
handle
Retriever
End
handle
Retriever
Start
handle
Tool
End
handle
Tool
Error
handle
Tool
Start
Constructors
constructor
new
Lunary
Handler
(
fields
?
)
:
LunaryHandler
Parameters
Optional
fields
:
LunaryHandlerFields
Returns
LunaryHandler
Properties
lunary
lunary
:
BackendMonitor
name
name
:
string
Methods
handle
Chain
End
handle
Chain
End
(
outputs
,
runId
)
:
Promise
<
void
>
Parameters
outputs
:
ChainValues
runId
:
string
Returns
Promise
<
void
>
handle
Chain
Error
handle
Chain
Error
(
error
,
runId
)
:
Promise
<
void
>
Parameters
error
:
Error
runId
:
string
Returns
Promise
<
void
>
handle
Chain
Start
handle
Chain
Start
(
chain
,
inputs
,
runId
,
parentRunId
?
,
tags
?
,
metadata
?
)
:
Promise
<
void
>
Parameters
chain
:
Serialized
inputs
:
ChainValues
runId
:
string
Optional
parentRunId
:
string
Optional
tags
:
string
[]
Optional
metadata
:
KVMap
Returns
Promise
<
void
>
handle
Chat
Model
Start
handle
Chat
Model
Start
(
llm
,
messages
,
runId
,
parentRunId
?
,
extraParams
?
,
tags
?
,
metadata
?
)
:
Promise
<
void
>
Parameters
llm
:
Serialized
messages
:
BaseMessage
[]
[]
runId
:
string
Optional
parentRunId
:
string
Optional
extraParams
:
KVMap
Optional
tags
:
string
[]
Optional
metadata
:
KVMap
Returns
Promise
<
void
>
handleLLMEnd
handleLLMEnd
(
output
,
runId
)
:
Promise
<
void
>
Parameters
output
:
LLMResult
runId
:
string
Returns
Promise
<
void
>
handleLLMError
handleLLMError
(
error
,
runId
)
:
Promise
<
void
>
Parameters
error
:
Error
runId
:
string
Returns
Promise
<
void
>
handleLLMStart
handleLLMStart
(
llm
,
prompts
,
runId
,
parentRunId
?
,
extraParams
?
,
tags
?
,
metadata
?
)
:
Promise
<
void
>
Parameters
llm
:
Serialized
prompts
:
string
[]
runId
:
string
Optional
parentRunId
:
string
Optional
extraParams
:
KVMap
Optional
tags
:
string
[]
Optional
metadata
:
KVMap
Returns
Promise
<
void
>
handle
Retriever
End
handle
Retriever
End
(
documents
,
runId
,
parentRunId
?
,
tags
?
)
:
Promise
<
void
>
Parameters
documents
:
any
[]
runId
:
string
Optional
parentRunId
:
string
Optional
tags
:
string
[]
Returns
Promise
<
void
>
handle
Retriever
Start
handle
Retriever
Start
(
retriever
,
query
,
runId
,
parentRunId
?
,
tags
?
,
metadata
?
,
name
?
)
:
Promise
<
void
>
Parameters
retriever
:
Serialized
query
:
string
runId
:
string
Optional
parentRunId
:
string
Optional
tags
:
string
[]
Optional
metadata
:
KVMap
Optional
name
:
string
Returns
Promise
<
void
>
handle
Tool
End
handle
Tool
End
(
output
,
runId
)
:
Promise
<
void
>
Parameters
output
:
string
runId
:
string
Returns
Promise
<
void
>
handle
Tool
Error
handle
Tool
Error
(
error
,
runId
)
:
Promise
<
void
>
Parameters
error
:
Error
runId
:
string
Returns
Promise
<
void
>
handle
Tool
Start
handle
Tool
Start
(
tool
,
input
,
runId
,
parentRunId
?
,
tags
?
,
metadata
?
)
:
Promise
<
void
>
Parameters
tool
:
Serialized
input
:
string
runId
:
string
Optional
parentRunId
:
string
Optional
tags
:
string
[]
Optional
metadata
:
KVMap
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
lunary
name
Methods
handle
Chain
End
handle
Chain
Error
handle
Chain
Start
handle
Chat
Model
Start
handleLLMEnd
handleLLMError
handleLLMStart
handle
Retriever
End
handle
Retriever
Start
handle
Tool
End
handle
Tool
Error
handle
Tool
Start
LangChain.js - v0.2.14
Loading...