Skip to content

FileIdThreadItem

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  2456815412["v2_protocol.FileIdThreadItem"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 2456815412
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Either inline generated-image data or its durable attachment-store identity.

File must remain first so rollouts written during the migration, which contain both an empty result and a fileId, retain the file reference when deserialized.

Source code in src/codexed/models/v2_protocol.py
class FileIdThreadItem(CodexBaseModel):
    """Either inline generated-image data or its durable attachment-store identity.

    `File` must remain first so rollouts written during the migration, which contain both an empty `result` and a `fileId`, retain the file reference when deserialized.
    """

    completed_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item completed, if recorded.
    """
    started_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item started, if recorded.
    """
    failure: ImageGenerationFailure | None = None
    generation_id: str | None = None
    """
    Image generation identifier for the generated image, when provided by the image backend.
    """
    id: str
    input_images: list[ImageGenerationInputImage] | None = None
    """
    Observed local inputs for a completed generation, absent on older items.
    """
    revised_prompt: str | None = None
    saved_path: AbsolutePathBuf | None = None
    status: str
    transparent_background: bool | None = None
    type: Literal["imageGeneration"] = "imageGeneration"
    file_id: str

completed_at_ms class-attribute instance-attribute

completed_at_ms: int | None = None

Unix timestamp in milliseconds when the item completed, if recorded.

generation_id class-attribute instance-attribute

generation_id: str | None = None

Image generation identifier for the generated image, when provided by the image backend.

input_images class-attribute instance-attribute

input_images: list[ImageGenerationInputImage] | None = None

Observed local inputs for a completed generation, absent on older items.

started_at_ms class-attribute instance-attribute

started_at_ms: int | None = None

Unix timestamp in milliseconds when the item started, if recorded.

:fa-brands-github: Show source on GitHub