LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.prebuilttool_nodeToolCallRequestoverride
    Method●Since v1.0

    override

    Replace the request with a new request with the given overrides.

    Returns a new ToolCallRequest instance with the specified attributes replaced. This follows an immutable pattern, leaving the original request unchanged.

    Copy
    override(
        self,
        **overrides: Unpack[_ToolCallRequestOverrides] = {},
    ) -> ToolCallRequest

    Parameters

    NameTypeDescription
    **overridesUnpack[_ToolCallRequestOverrides]
    Default:{}

    Keyword arguments for attributes to override.

    Supported keys:

    • tool_call: Tool call dict with name, args, and id
    • state: Agent state (dict, list, or BaseModel)
    View source on GitHub