Overview / NewTokenHandler
NewTokenHandler
Extends
BaseCallbackHandler
Constructors
new NewTokenHandler()
new NewTokenHandler(
stray
,input
?):NewTokenHandler
Parameters
Parameter | Type |
---|---|
stray | StrayCat |
input ? | BaseCallbackHandlerInput |
Returns
Overrides
BaseCallbackHandler.constructor
Properties
Property | Type | Default value | Overrides |
---|---|---|---|
name | string | 'NewToken' | BaseCallbackHandler.name |
Methods
handleLLMNewToken()
handleLLMNewToken(
token
):void
Called when an LLM/ChatModel in streaming
mode produces a new token
Parameters
Parameter | Type |
---|---|
token | string |
Returns
void
Overrides
BaseCallbackHandler.handleLLMNewToken