LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreoutput_parsersopenai_toolsJsonOutputToolsParserfirst_tool_only
    Attribute●Since v0.1

    first_tool_only

    Whether to return only the first tool call.

    If False, the result will be a list of tool calls, or an empty list if no tool calls are found.

    If True, and multiple tool calls are found, only the first one will be returned, and the other tool calls will be ignored.

    If no tool calls are found, None will be returned.

    Copy
    first_tool_only: bool = False
    View source on GitHub