Initialize the ModelLaboratory with LLMs and an optional prompt.
from_llms(
cls,
llms: list[BaseLLM],
prompt: PromptTemplate | None = None
) -> ModelLaboratory| Name | Type | Description |
|---|---|---|
llms* | list[BaseLLM] | A list of LLMs to experiment with. |
prompt | PromptTemplate | None | Default: NoneAn optional prompt to use with the LLMs. If provided, the prompt must contain exactly one input variable. |