Home / Class/ CommandExecutionResult Class — langchain Architecture

CommandExecutionResult Class — langchain Architecture

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

Entity Profile

Dependency Diagram

graph TD
  06477395_32e9_54a5_ca15_e3274dbf6a21["CommandExecutionResult"]
  943b36d5_cd9f_c106_7d11_56e39e63078a["shell_tool.py"]
  06477395_32e9_54a5_ca15_e3274dbf6a21 -->|defined in| 943b36d5_cd9f_c106_7d11_56e39e63078a

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/shell_tool.py lines 113–122

class CommandExecutionResult:
    """Structured result from command execution."""

    output: str
    exit_code: int | None
    timed_out: bool
    truncated_by_lines: bool
    truncated_by_bytes: bool
    total_lines: int
    total_bytes: int

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free