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

    base

    An agent designed to hold a conversation in addition to using tools.

    Attributes

    attribute
    AGENT_DEPRECATION_WARNING: str
    attribute
    FORMAT_INSTRUCTIONS: str
    attribute
    PREFIX: str
    attribute
    SUFFIX: str

    Functions

    function
    validate_tools_single_input

    Validate tools for single input.

    Classes

    class
    AgentOutputParser

    Base class for parsing agent output into agent action/finish.

    class
    ConvoOutputParser

    Output parser for the conversational agent.

    deprecatedclass
    Agent

    Agent that calls the language model and deciding the action.

    This is driven by a LLMChain. The prompt in the LLMChain MUST include a variable called "agent_scratchpad" where the agent can put its intermediary work.

    deprecatedclass
    AgentType

    An enum for agent types.

    deprecatedclass
    ConversationalAgent

    An agent that holds a conversation in addition to using tools.

    View source on GitHub