langchain_experimental API Reference¶
langchain_experimental.autonomous_agents¶
Classes¶
Memory for AutoGPT. |
|
Action returned by AutoGPTOutputParser. |
|
Output parser for AutoGPT. |
|
|
Base Output parser for AutoGPT. |
Prompt for AutoGPT. |
|
Controller model for the BabyAGI agent. |
|
Chain generating tasks. |
|
|
Chain to execute tasks. |
|
Chain to prioritize tasks. |
|
Chain to execute tasks. |
Create a new model by parsing and validating input data from keyword arguments. |
|
|
Create a new model by parsing and validating input data from keyword arguments. |
Chain to execute tasks. |
|
Create a new model by parsing and validating input data from keyword arguments. |
Functions¶
|
Preprocesses a string to be parsed as json. |
|
Generates a prompt string. |
|
|
|
langchain_experimental.cpal¶
Classes¶
|
Enum for constants used in the CPAL. |
langchain_experimental.generative_agents¶
Generative Agents primitives.
Classes¶
An Agent as a character with memory and innate characteristics. |
|
Memory for the generative agent. |
langchain_experimental.llms¶
Experimental LLM wrappers.
Classes¶
Create a new model by parsing and validating input data from keyword arguments. |
|
A heavy-handed solution, but it's fast for prototyping. |
|
Jsonformer wrapped LLM using HuggingFace Pipeline API. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
RELLM wrapped LLM using HuggingFace Pipeline API. |
Functions¶
Lazily import jsonformer. |
|
Lazily import rellm. |
langchain_experimental.pal_chain¶
Implements Program-Aided Language Models.
As in https://arxiv.org/pdf/2211.10435.pdf.
This is vulnerable to arbitrary code execution: https://github.com/hwchase17/langchain/issues/5872
Classes¶
Implements Program-Aided Language Models (PAL). |
Functions¶
langchain_experimental.plan_and_execute¶
Classes¶
Plan and execute a chain of steps. |
|
Base executor. |
|
Chain executor. |
|
Base planner. |
|
LLM planner. |
|
Planning output parser. |
|
Base step container. |
|
List step container. |
|
Plan. |
|
Plan output parser. |
|
Step. |
|
Step response. |
Functions¶
|
Load an agent executor. |
|
Load a chat planner. |
langchain_experimental.prompts¶
Functions¶
langchain_experimental.sql¶
Chain for interacting with SQL Database.
Classes¶
Chain for interacting with SQL Database. |
|
Chain for querying SQL database that is a sequential chain. |
langchain_experimental.tot¶
Classes¶
A Chain implementing the Tree of Thought (ToT). |
|
Tree of Thought (ToT) checker. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Class to parse the output of a PROPOSE_PROMPT response. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
|
|
Base class for a thought generation strategy. |
|
Propose thoughts sequentially using a "propose prompt". |
|
Sample thoughts from a Chain-of-Thought (CoT) prompt. |