Skip to content

ClaudeAttachmentEntry

Base classes

Name Children Inherits
ClaudeEntryBase
clawd_code_sdk.storage.models
Base of all entries that take part in the ``parentUuid`` chain.

⋔ Inheritance diagram

graph TD
  1823634076["models.ClaudeAttachmentEntry"]
  3306911705["models.ClaudeEntryBase"]
  746985124["models.ClaudeStorageModel"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3306911705 --> 1823634076
  746985124 --> 3306911705
  2604142835 --> 746985124
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeEntryBase

Context attached to the conversation (hook output, file contents, reminders, ...).

Attachment entries are part of the parentUuid chain: assistant and user entries often have an attachment as their parent, so chain walks must pass through them.

Source code in src/clawd_code_sdk/storage/models.py
class ClaudeAttachmentEntry(ClaudeEntryBase):
    """Context attached to the conversation (hook output, file contents, reminders, ...).

    Attachment entries are part of the ``parentUuid`` chain: assistant and user entries
    often have an attachment as their parent, so chain walks must pass through them.
    """

    type: Literal["attachment"]
    attachment: ClaudeAttachment
    rendered: list[Any] | None = None
    """How the attachment was rendered into the prompt, if recorded."""
    rendered_role: str | None = None
    rendered_beside_tool_result: bool | None = None
    rendered_in_human_turn: list[Any] | None = None

rendered class-attribute instance-attribute

rendered: list[Any] | None = None

How the attachment was rendered into the prompt, if recorded.

:fa-brands-github: Show source on GitHub