LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-classicmodel_laboratoryModelLaboratoryfrom_llms
    Method●Since v1.0

    from_llms

    Initialize the ModelLaboratory with LLMs and an optional prompt.

    Copy
    from_llms(
      cls,
      llms: list[BaseLLM],
      prompt: PromptTemplate | None = None
    ) -> ModelLaboratory

    Parameters

    NameTypeDescription
    llms*list[BaseLLM]

    A list of LLMs to experiment with.

    promptPromptTemplate | None
    Default:None

    An optional prompt to use with the LLMs. If provided, the prompt must contain exactly one input variable.

    View source on GitHub