Documentation Index
Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt
Use this file to discover all available pages before exploring further.
Compute Schema Validation
When working with Lucid, it’s essential to ensure that the metadata associated with various asset types is correctly validated. This is particularly important for the creation of passports, which are used to manage and verify asset metadata.Passport Metadata Validation
In Lucid, each asset type has a corresponding schema that defines the structure and requirements for its metadata. These schemas are crucial for validating the information associated with each asset type during passport creation. TheTYPE_SCHEMA_MAP is a key component in this process, mapping asset types to their respective schemas.
Asset Type Schemas
Here’s a breakdown of the schemas used for different asset types:-
Model: Uses
ModelMeta.schema.jsonfor validation. This schema ensures that all necessary metadata for models is correctly structured and complete. -
Compute: Validated using
ComputeMeta.schema.json. This schema is specifically designed to handle metadata related to computational assets, ensuring that all relevant information is accurately captured. -
Tool: The
ToolMeta.schema.jsonis used here, withadditionalProperties: true. This allows for more flexible metadata, supporting fields likeskill_md,setup, and other rich metadata elements. This flexibility is crucial for tools that may have diverse and complex metadata requirements. -
Agent: Uses
AgentMeta.schema.jsonfor validation. This schema ensures that agent-related metadata is properly structured, facilitating effective management and deployment of agents within the Lucid ecosystem. - Dataset: Unlike other asset types, datasets do not have a dedicated schema. Instead, they undergo basic validation to ensure that the fundamental metadata is present and correctly formatted.
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)