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-classicagentsagent_toolkitsconversational_retrievalopenai_functions
    Module●Since v1.0

    openai_functions

    Functions

    function
    create_conversational_retrieval_agent

    A convenience method for creating a conversational retrieval agent.

    Classes

    class
    AgentExecutor

    Agent that is using tools.

    class
    AgentTokenBufferMemory

    Memory used to save agent output AND intermediate steps.

    deprecatedclass
    OpenAIFunctionsAgent

    An Agent driven by OpenAIs function powered API.

    deprecatedclass
    BaseMemory

    Abstract base class for memory in Chains.

    Memory refers to state in Chains. Memory can be used to store information about past executions of a Chain and inject that information into the inputs of future executions of the Chain. For example, for conversational Chains Memory can be used to store conversations and automatically add them to future model prompts so that the model has the necessary context to respond coherently to the latest input.

    deprecatedclass
    ConversationTokenBufferMemory

    Conversation chat memory with token limit.

    Keeps only the most recent messages in the conversation under the constraint that the total number of tokens in the conversation does not exceed a certain limit.

    View source on GitHub