abacusai.media_artifact

Classes

MediaArtifact

Media Artifact

Module Contents

class abacusai.media_artifact.MediaArtifact(client, mediaArtifactId=None, mediaType=None, info=None, sourceDeploymentConversationId=None, isFavorited=None, isShared=None, publicUrl=None, thumbnailUrl=None, mediaUrl=None, createdAt=None, updatedAt=None)

Bases: abacusai.return_class.AbstractApiClass

Media Artifact

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • mediaArtifactId (id) – The ID of the media artifact

  • mediaType (str) – The type of media (IMAGE, VIDEO, AUDIO)

  • info (dict) – Metadata (width, height, mime_type, file_size_bytes, generation_model, generation_prompt, generation_params, duration_seconds)

  • sourceDeploymentConversationId (id) – The source conversation ID

  • isFavorited (bool) – Whether the artifact is favorited

  • isShared (bool) – Whether the artifact is shared publicly

  • publicUrl (str) – The permanent public URL (set after sharing)

  • thumbnailUrl (str) – Signed thumbnail URL (generated at read time)

  • mediaUrl (str) – Signed full media URL (generated at read time)

  • createdAt (str) – The creation timestamp

  • updatedAt (str) – The last update timestamp

media_artifact_id = None
media_type = None
info = None
source_deployment_conversation_id = None
is_favorited = None
is_shared = None
public_url = None
thumbnail_url = None
media_url = None
created_at = None
updated_at = None
deprecated_keys
__repr__()
to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict