ServerToolCall Class — langchain Architecture
Architecture documentation for the ServerToolCall class in content.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD aab54070_adfe_85bb_c4cd_7cb81a447798["ServerToolCall"] c7f11daf_e104_efbe_7225_f1d6da8e8630["content.py"] aab54070_adfe_85bb_c4cd_7cb81a447798 -->|defined in| c7f11daf_e104_efbe_7225_f1d6da8e8630
Relationship Graph
Source Code
libs/core/langchain_core/messages/content.py lines 372–394
class ServerToolCall(TypedDict):
"""Tool call that is executed server-side.
For example: code execution, web search, etc.
"""
type: Literal["server_tool_call"]
"""Used for discrimination."""
id: str
"""An identifier associated with the tool call."""
name: str
"""The name of the tool to be called."""
args: dict[str, Any]
"""The arguments to the tool call."""
index: NotRequired[int | str]
"""Index of block in aggregate response. Used during streaming."""
extras: NotRequired[dict[str, Any]]
"""Provider-specific metadata."""
Defined In
Source
Frequently Asked Questions
What is the ServerToolCall class?
ServerToolCall is a class in the langchain codebase, defined in libs/core/langchain_core/messages/content.py.
Where is ServerToolCall defined?
ServerToolCall is defined in libs/core/langchain_core/messages/content.py at line 372.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free