Class: CallbackManager
Implements
CallbackManagerMethods
Constructors
constructor
• new CallbackManager(handlers?
): CallbackManager
Parameters
Name | Type |
---|---|
handlers? | Partial <CallbackManagerMethods > |
Returns
Defined in
packages/core/src/callbacks/CallbackManager.ts:130
Properties
#handlers
• Private
#handlers: Map
<keyof LlamaIndexEventMaps
, EventHandler
<CustomEvent
<any
>>[]>
Defined in
packages/core/src/callbacks/CallbackManager.ts:128
Accessors
onLLMStream
• get
onLLMStream(): (params
: StreamCallbackResponse
) => void
| Promise
<void
>
Returns
fn
▸ (params
): void
| Promise
<void
>
Parameters
Name | Type |
---|---|
params | StreamCallbackResponse |
Returns
void
| Promise
<void
>
Deprecated
will be removed in the next major version