ClaudeUserEntry
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ClaudeMessageEntryBase clawd_code_sdk.storage.models Base for user/assistant message entries with message payload. |
⋔ Inheritance diagram¶
graph TD
3591294908["models.ClaudeUserEntry"]
3921133358["models.ClaudeMessageEntryBase"]
3306911705["models.ClaudeEntryBase"]
746985124["models.ClaudeStorageModel"]
2604142835["base.ClaudeCodeBaseModel"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3921133358 --> 3591294908
3306911705 --> 3921133358
746985124 --> 3306911705
2604142835 --> 746985124
3879467795 --> 2604142835
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: ClaudeMessageEntryBase
User message entry.
Source code in src/clawd_code_sdk/storage/models.py
is_tool_result
property
¶
Whether this is a synthetic tool_result entry (vs. an actual user prompt).
mcp_meta
class-attribute
instance-attribute
¶
_meta / structuredContent of an MCP tool result.
origin
class-attribute
instance-attribute
¶
Origin of the message, keyed by kind.
permission_decision
class-attribute
instance-attribute
¶
How the tool call this result answers was permitted (decision, source, reason).
permission_mode
class-attribute
instance-attribute
¶
Permission mode active when the prompt was sent.
prompt_source
class-attribute
instance-attribute
¶
Where the prompt came from (typed, sdk, queued, system).
sandboxed
class-attribute
instance-attribute
¶
Whether the tool call ran in the sandbox.
source_tool_assistant_uuid
class-attribute
instance-attribute
¶
For tool results: uuid of the assistant entry holding the tool_use this answers.
source_tool_use_id
class-attribute
instance-attribute
¶
ID of the tool use that produced this message (e.g. skill or command expansions).
tool_denial_kind
class-attribute
instance-attribute
¶
Why the tool call was denied (user-rejected, permission-rule, ...).
turn_origin
class-attribute
instance-attribute
¶
What started the turn (human, sdk, task_notification, peer, ...).
turn_position
class-attribute
instance-attribute
¶
turnIndex / promptIndex of the prompt within the session.