import { ... } from "@langchain/core/language_models/base";Get the context window size (max input tokens) for a given model.
Context window sizes are sourced from official model documentation:
Whether or not the input matches the OpenAI tool definition.
Base interface implemented by all runnables. Used for cross-compatibility between different versions of LangChain core.
Should not change on patch releases.
Base interface for language model parameters. A subclass of BaseLanguageModel should have a constructor that takes in a parameter that extends this interface.
Shared interface for token usage return type from LLM calls.