abacusai.chat_segment_artifact ============================== .. py:module:: abacusai.chat_segment_artifact Classes ------- .. autoapisummary:: abacusai.chat_segment_artifact.ChatSegmentArtifact Module Contents --------------- .. py:class:: ChatSegmentArtifact(client, artifactId=None, artifactMetadata=None, artifactType=None, storageType=None, content=None, renderingContent=None, publicUrl=None, createdAt=None, updatedAt=None) Bases: :py:obj:`abacusai.return_class.AbstractApiClass` Shared Code/Artifact Segment :param client: An authenticated API Client instance :type client: ApiClient :param artifactId: The ID of the chat segment artifact :type artifactId: id :param artifactMetadata: Metadata (identifier, title, componentName, language, readonly, etc.) :type artifactMetadata: dict :param artifactType: The artifact type (SQL, PYTHON, REACT, JSX, MARKDOWN, HTML, SVG, XML, CSS, JSON, JAVASCRIPT, TEXT) :type artifactType: str :param storageType: Where content is stored ('inline' or 's3') :type storageType: str :param content: Inline artifact content (present when storage_type='inline') :type content: str :param renderingContent: Rendering code for ReactComponents, if applicable :type renderingContent: str :param publicUrl: CDN URL for S3-backed content (present when storage_type='s3') :type publicUrl: str :param createdAt: The creation timestamp :type createdAt: str :param updatedAt: The last update timestamp :type updatedAt: str .. py:attribute:: artifact_id :value: None .. py:attribute:: artifact_metadata :value: None .. py:attribute:: artifact_type :value: None .. py:attribute:: storage_type :value: None .. py:attribute:: content :value: None .. py:attribute:: rendering_content :value: None .. py:attribute:: public_url :value: None .. py:attribute:: created_at :value: None .. py:attribute:: updated_at :value: None .. py:attribute:: deprecated_keys .. py:method:: __repr__() .. py:method:: to_dict() Get a dict representation of the parameters in this class :returns: The dict value representation of the class parameters :rtype: dict