import { ... } from "@langchain/core/callbacks/base";Interface for the input parameters of the BaseCallbackHandler class. It allows to specify which types of events should be ignored by the callback handler.
Base interface for callbacks. All methods are optional. If a method is not implemented, it will be ignored. If a method is implemented, it will be called at the appropriate time. All methods are called with the run ID of the LLM/ChatModel/Chain that is running, which is generated by the CallbackManager.
Interface for handlers that can indicate a preference for streaming responses. When implemented, this allows the handler to signal whether it prefers to receive streaming responses from language models rather than complete responses.
Interface for the indices of a new token produced by an LLM or Chat Model in streaming mode.