abacusai.chat_segment_artifact

Classes

ChatSegmentArtifact

Shared Code/Artifact Segment

Module Contents

class abacusai.chat_segment_artifact.ChatSegmentArtifact(client, artifactId=None, artifactMetadata=None, artifactType=None, storageType=None, content=None, renderingContent=None, publicUrl=None, createdAt=None, updatedAt=None)

Bases: abacusai.return_class.AbstractApiClass

Shared Code/Artifact Segment

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

  • artifactId (id) – The ID of the chat segment artifact

  • artifactMetadata (dict) – Metadata (identifier, title, componentName, language, readonly, etc.)

  • artifactType (str) – The artifact type (SQL, PYTHON, REACT, JSX, MARKDOWN, HTML, SVG, XML, CSS, JSON, JAVASCRIPT, TEXT)

  • storageType (str) – Where content is stored (‘inline’ or ‘s3’)

  • content (str) – Inline artifact content (present when storage_type=’inline’)

  • renderingContent (str) – Rendering code for ReactComponents, if applicable

  • publicUrl (str) – CDN URL for S3-backed content (present when storage_type=’s3’)

  • createdAt (str) – The creation timestamp

  • updatedAt (str) – The last update timestamp

artifact_id = None
artifact_metadata = None
artifact_type = None
storage_type = None
content = None
rendering_content = None
public_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