Bases: TypedDict
tool_use_result for the BashOutput tool (background shell output retrieval).
Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62.
Shape derived from: https://github.com/kzahel/yepanywhere/blob/main/packages/shared/src/claude-sdk-schema/tool/ToolResultSchemas.ts
Source code in src/clawd_code_sdk/models/output_types.py
| class BashOutputOutput(TypedDict):
"""``tool_use_result`` for the BashOutput tool (background shell output retrieval).
Not part of the official SDK ToolOutputSchemas as of SDK v0.2.62.
Shape derived from: https://github.com/kzahel/yepanywhere/blob/main/packages/shared/src/claude-sdk-schema/tool/ToolResultSchemas.ts
"""
shellId: NotRequired[str]
"""ID of the background shell."""
command: NotRequired[str]
"""The command that was executed."""
status: NotRequired[Status]
"""Current status of the command."""
exitCode: NotRequired[int | None]
"""Exit code of the command, or None if still running."""
stdout: NotRequired[str]
"""Standard output."""
stderr: NotRequired[str]
"""Standard error."""
stdoutLines: NotRequired[int]
"""Number of lines in stdout."""
stderrLines: NotRequired[int]
"""Number of lines in stderr."""
timestamp: NotRequired[str]
"""Timestamp of the output."""
|
command
instance-attribute
command: NotRequired[str]
The command that was executed.
exitCode
instance-attribute
exitCode: NotRequired[int | None]
Exit code of the command, or None if still running.
shellId
instance-attribute
shellId: NotRequired[str]
ID of the background shell.
status
instance-attribute
status: NotRequired[Status]
Current status of the command.
stderr
instance-attribute
stderrLines
instance-attribute
stderrLines: NotRequired[int]
Number of lines in stderr.
stdout
instance-attribute
stdoutLines
instance-attribute
stdoutLines: NotRequired[int]
Number of lines in stdout.
timestamp
instance-attribute
timestamp: NotRequired[str]