ModelCompact
ModelCompact
Example
# Get from listing
models = list(Model.list(project_id=project.id))
compact_model = models[0]
# Access basic info
print(f”Model: {compact_model.name} v{compact_model.version}”)
print(f”ID: {compact_model.id}”)
# Fetch full details when needed
full_model = compact_model.fetch()
print(f”Task: {full_model.task}”)
print(f”Schema: {len(full_model.schema.columns)} columns”)version : str | None = None
fetch()
Returns
Example
Last updated
Was this helpful?