v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.14
LangChain.js
langchain-core/callbacks/manager
CallbackManagerForRetrieverRun
Class CallbackManagerForRetrieverRun
Manages callbacks for retriever runs.
Hierarchy (
view full
)
BaseRunManager
CallbackManagerForRetrieverRun
Implements
BaseCallbackManagerMethods
Index
Constructors
constructor
Properties
handlers
run
Id
inheritable
Handlers
inheritable
Metadata
inheritable
Tags
metadata
tags
Accessors
parent
Run
Id
Methods
get
Child
handle
Custom
Event
handle
Retriever
End
handle
Retriever
Error
handle
Text
Constructors
constructor
new
Callback
Manager
For
Retriever
Run
(
runId
,
handlers
,
inheritableHandlers
,
tags
,
inheritableTags
,
metadata
,
inheritableMetadata
,
_parentRunId
?
)
:
CallbackManagerForRetrieverRun
Parameters
runId
:
string
handlers
:
BaseCallbackHandler
[]
inheritableHandlers
:
BaseCallbackHandler
[]
tags
:
string
[]
inheritableTags
:
string
[]
metadata
:
Record
<
string
,
unknown
>
inheritableMetadata
:
Record
<
string
,
unknown
>
Optional
_parentRunId
:
string
Returns
CallbackManagerForRetrieverRun
Properties
Readonly
handlers
handlers
:
BaseCallbackHandler
[]
Readonly
run
Id
run
Id
:
string
Protected
Readonly
inheritable
Handlers
inheritable
Handlers
:
BaseCallbackHandler
[]
Protected
Readonly
inheritable
Metadata
inheritable
Metadata
:
Record
<
string
,
unknown
>
Protected
Readonly
inheritable
Tags
inheritable
Tags
:
string
[]
Protected
Readonly
metadata
metadata
:
Record
<
string
,
unknown
>
Protected
Readonly
tags
tags
:
string
[]
Accessors
parent
Run
Id
get
parentRunId
(
)
:
undefined
|
string
Returns
undefined
|
string
Methods
get
Child
get
Child
(
tag
?
)
:
CallbackManager
Parameters
Optional
tag
:
string
Returns
CallbackManager
handle
Custom
Event
handle
Custom
Event
(
eventName
,
data
,
_runId
?
,
_tags
?
,
_metadata
?
)
:
Promise
<
void
>
Parameters
eventName
:
string
data
:
any
Optional
_runId
:
string
Optional
_tags
:
string
[]
Optional
_metadata
:
Record
<
string
,
any
>
Returns
Promise
<
void
>
handle
Retriever
End
handle
Retriever
End
(
documents
)
:
Promise
<
void
>
Parameters
documents
:
DocumentInterface
<
Record
<
string
,
any
>
>
[]
Returns
Promise
<
void
>
handle
Retriever
Error
handle
Retriever
Error
(
err
)
:
Promise
<
void
>
Parameters
err
:
unknown
Returns
Promise
<
void
>
handle
Text
handle
Text
(
text
)
:
Promise
<
void
>
Parameters
text
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
handlers
run
Id
inheritable
Handlers
inheritable
Metadata
inheritable
Tags
metadata
tags
Accessors
parent
Run
Id
Methods
get
Child
handle
Custom
Event
handle
Retriever
End
handle
Retriever
Error
handle
Text
LangChain.js - v0.2.14
Loading...
Manages callbacks for retriever runs.