Base interface implemented by all runnables. Used for cross-compatibility between different versions of LangChain core.
Should not change on patch releases.
interface BaseLanguageModelInterfaceRunnableInterface<BaseLanguageModelInput, RunOutput, CallOptions>Get the identifying parameters of the LLM.
Default implementation of batch, which calls invoke N times. Subclasses should override this method if they can batch more efficiently.
Get the number of tokens in the content.
Method to invoke the document transformation. This method calls the transformDocuments method with the provided input.
Stream output in chunks.
Default implementation of transform, which buffers input and then calls stream. Subclasses should override this method if they can start producing output while input is still being generated.
Default implementation of batch, which calls invoke N times.
Method to invoke the document transformation. This method calls the
Stream output in chunks.
Default implementation of transform, which buffers input and then calls stream.