본문으로 건너뛰기

Class: CallbackManager

Implements

  • CallbackManagerMethods

Constructors

constructor

new CallbackManager(handlers?): CallbackManager

Parameters

NameType
handlers?CallbackManagerMethods

Returns

CallbackManager

Defined in

packages/core/src/callbacks/CallbackManager.ts:80

Properties

onLLMStream

Optional onLLMStream: (params: StreamCallbackResponse) => void | Promise<void>

Type declaration

▸ (params): void | Promise<void>

Parameters
NameType
paramsStreamCallbackResponse
Returns

void | Promise<void>

Implementation of

CallbackManagerMethods.onLLMStream

Defined in

packages/core/src/callbacks/CallbackManager.ts:77


onRetrieve

Optional onRetrieve: (params: RetrievalCallbackResponse) => void | Promise<void>

Type declaration

▸ (params): void | Promise<void>

Parameters
NameType
paramsRetrievalCallbackResponse
Returns

void | Promise<void>

Implementation of

CallbackManagerMethods.onRetrieve

Defined in

packages/core/src/callbacks/CallbackManager.ts:78