# ModelCompact

Lightweight model representation for listing and basic operations.

A minimal model object containing only essential identifiers. Used by Model.list() to efficiently return model information without fetching full schema and configuration details.

## Example

```python
# 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")
```

## id *: UUID*

## name *: str*

## version *: str | None* *= None*

## fetch()

Fetch the complete Model instance.

Retrieves the full Model object with all schema, spec, and configuration details from the Fiddler platform using this compact model's ID.

### Returns

Complete model instance with all details and capabilities.

**Return type:** [`Model`](/api/fiddler-python-client-sdk/entities/model.md)

### Example

```python
# From model listing
compact = next(Model.list(project_id=project.id))

# Get full model details
full_model = compact.fetch()

# Now can access full functionality
full_model.publish(source=data)
print(f"Input columns: {full_model.spec.inputs}")
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fiddler.ai/api/fiddler-python-client-sdk/entities/model-compact.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
