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

    tools

    Functions

    function
    parse_ai_message_to_tool_action

    Parse an AI message potentially containing tool_calls.

    Classes

    class
    MultiActionAgentOutputParser

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

    This is used for agents that can return multiple actions.

    class
    ToolAgentAction

    Tool agent action.

    class
    ToolsAgentOutputParser

    Parses a message into agent actions/finish.

    If a tool_calls parameter is passed, then that is used to get the tool names and tool inputs.

    If one is not passed, then the AIMessage is assumed to be the final output.

    View source on GitHub