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

    ServerToolCallChunk

    Copy
    ServerToolCallChunk()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    typeLiteral['server_tool_call_chunk']
    nameNotRequired[str]
    argsNotRequired[str]
    idNotRequired[str]
    indexNotRequired[int | str]
    extrasNotRequired[dict[str, Any]]
    attribute
    type: Literal['server_tool_call_chunk']

    Used for discrimination.

    attribute
    name: NotRequired[str]

    The name of the tool to be called.

    attribute
    args: NotRequired[str]

    JSON substring of the arguments to the tool call.

    attribute
    id: NotRequired[str]

    Unique identifier for this server tool call chunk.

    Either:

    • Generated by the provider
    • Generated by LangChain upon creation (UUID4 prefixed with 'lc_'))
    attribute
    index: NotRequired[int | str]

    Index of block in aggregate response. Used during streaming.

    attribute
    extras: NotRequired[dict[str, Any]]

    Provider-specific metadata.

    A chunk of a server-side tool call (yielded when streaming).