Home / Class/ ShellToolState Class — langchain Architecture

ShellToolState Class — langchain Architecture

Architecture documentation for the ShellToolState class in shell_tool.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  41dade94_5bd0_cf33_79fb_7696e71355fd["ShellToolState"]
  943b36d5_cd9f_c106_7d11_56e39e63078a["shell_tool.py"]
  41dade94_5bd0_cf33_79fb_7696e71355fd -->|defined in| 943b36d5_cd9f_c106_7d11_56e39e63078a

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/shell_tool.py lines 100–109

class ShellToolState(AgentState[ResponseT]):
    """Agent state extension for tracking shell session resources.

    Type Parameters:
        ResponseT: The type of the structured response. Defaults to `Any`.
    """

    shell_session_resources: NotRequired[
        Annotated[_SessionResources | None, UntrackedValue, PrivateStateAttr]
    ]

Frequently Asked Questions

What is the ShellToolState class?
ShellToolState is a class in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/shell_tool.py.
Where is ShellToolState defined?
ShellToolState is defined in libs/langchain_v1/langchain/agents/middleware/shell_tool.py at line 100.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free