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_nodeToolCallWithContext
    Class●Since v1.0

    ToolCallWithContext

    ToolCall with additional context for graph state.

    This is an internal data structure meant to help the ToolNode accept tool calls with additional context (e.g. state) when dispatched using the Send API.

    The Send API is used in create_agent to distribute tool calls in parallel and support human-in-the-loop workflows where graph execution may be paused for an indefinite time.

    Copy
    ToolCallWithContext()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    tool_callToolCall
    stateAny

    Attributes

    attribute
    tool_call: ToolCall
    attribute
    state: Any

    The state is provided as additional context.

    View source on GitHub