transparentmeta.entity package
Submodules
transparentmeta.entity.metadata module
This module defines Metadata, the Pydantic model used to represent metadata in TransparentMeta. It serves as the core entity of the transparentmeta library. It captures all relevant metadata required for compliance with AI transparency laws, specifically for generative AI audio companies.
- class transparentmeta.entity.metadata.AIUsageLevel(*values)[source]
Bases:
str,EnumEnum representing levels of AI involvement in audio generation.
- AI_GENERATED
Fully generated by AI with little or no human input.
- AI_ASSISTED
AI/human collaboration, but humans played a significant creative role.
- HUMAN_CREATED
Entirely human-made without AI involvement.
- AI_ASSISTED = 'ai_assisted'
- AI_GENERATED = 'ai_generated'
- HUMAN_CREATED = 'human_created'
- class transparentmeta.entity.metadata.Metadata(**data)[source]
Bases:
BaseModelPydantic model representing metadata for AI-generated audio content.
This contains the metadata fields necessary to be compliant with AI transparency law.
- company
The company responsible for generating the content.
- Type:
str
- model
The name/version of the AI model used.
- Type:
str
- created_at
Timestamp of content creation.
- Type:
datetime
- ai_usage_level
Degree of AI involvement.
- Type:
- content_id
Unique identifier for the content.
- Type:
str
- user_id
Identifier for the user who initiated generation.
- Type:
str
- private_key_id
ID of the private key used to sign the metadata.
- Type:
str
- additional_info
Optional dictionary for extended metadata. For example: {
- “attribution”: {
“lyrics”: “John Doe”, “composer”: “Jane Smith”, “singer”: “HAL 9000”, …
}
}
- Type:
Optional[Dict]
-
additional_info:
Optional[Dict]
-
ai_usage_level:
AIUsageLevel
-
company:
str
-
content_id:
str
-
created_at:
datetime
-
model:
str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
private_key_id:
str
-
user_id:
str