Preparing search index...
The search index is not available
@ibm-cloud/watsonx-ai
@ibm-cloud/watsonx-ai
1.3.x
WatsonXAI
CallbackHandler
Class CallbackHandler
CallbackHandler class to be used with callbacks provided by user in requests
Index
Constructors
constructor
Properties
request
Callback
response
Callback
Methods
handle
Request
handle
Response
Constructors
constructor
new
Callback
Handler
(
callbacks
)
:
WatsonXAI
.
CallbackHandler
Parameters
callbacks
:
WatsonXAI
.
RequestCallbacks
<
any
>
Returns
WatsonXAI
.
CallbackHandler
Properties
request
Callback
request
Callback
:
WatsonXAI
.
InvokeRequestCallback
response
Callback
response
Callback
:
WatsonXAI
.
ReceiveResponseCallback
<
any
>
Methods
handle
Request
handle
Request
(
parameters
)
:
void
Parameters
parameters
:
WatsonXAI
.
RequestParameters
Returns
void
handle
Response
handle
Response
<
T
>
(
response
)
:
Promise
<
void
>
Type Parameters
T
Parameters
response
:
Promise
<
T
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
request
Callback
response
Callback
handle
Request
handle
Response
@ibm-cloud/watsonx-ai
Loading...
CallbackHandler class to be used with callbacks provided by user in requests