Class: CallbackManager
Implements
CallbackManagerMethods
Constructors
new CallbackManager()
new CallbackManager(
handlers
?):CallbackManager
Parameters
• handlers?: Partial
<CallbackManagerMethods
>
Returns
Source
packages/core/src/callbacks/CallbackManager.ts:179
Properties
#handlers
private
#handlers:Map
<keyofLlamaIndexEventMaps
,EventHandler
<CustomEvent
<any
>>[]>
Source
packages/core/src/callbacks/CallbackManager.ts:177
Accessors
onLLMStream
get
onLLMStream(): (params
) =>void
|Promise
<void
>
Deprecated
will be removed in the next major version
set
onLLMStream(_
):void
Deprecated
will be removed in the next major version
Parameters
• _: never
Returns
Function
Parameters
• params: StreamCallbackResponse
Returns
void
| Promise
<void
>
Source
packages/core/src/callbacks/CallbackManager.ts:136
onRetrieve
get
onRetrieve(): (params
) =>void
|Promise
<void
>
Deprecated
will be removed in the next major version
set
onRetrieve(_
):void
Deprecated
will be removed in the next major version