jellycell.cache.manifest¶
Pydantic schema for cell execution manifests.
One JSON file per cell execution, stored under .jellycell/cache/manifests/.
The schema here is a spec §10.1 contract — every field that users or agents
can see is versioned via schema_version.
See spec §2.3 for the full manifest shape.
Module Contents¶
Classes¶
Captured stdout/stderr stream. |
|
A |
|
The final expression value of a cell. |
|
An exception raised during cell execution. |
|
A file produced by a cell (via |
|
A single cell execution’s manifest (spec §2.3). |
Data¶
API¶
- jellycell.cache.manifest.MANIFEST_SCHEMA_VERSION¶
1
- class jellycell.cache.manifest.StreamOutput(/, **data: Any)¶
Bases:
pydantic.BaseModelCaptured stdout/stderr stream.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config¶
‘ConfigDict(…)’
- class jellycell.cache.manifest.DisplayDataOutput(/, **data: Any)¶
Bases:
pydantic.BaseModelA
display_datamime bundle (e.g., images, html).Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config¶
‘ConfigDict(…)’
- class jellycell.cache.manifest.ExecuteResultOutput(/, **data: Any)¶
Bases:
pydantic.BaseModelThe final expression value of a cell.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config¶
‘ConfigDict(…)’
- class jellycell.cache.manifest.ErrorOutput(/, **data: Any)¶
Bases:
pydantic.BaseModelAn exception raised during cell execution.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config¶
‘ConfigDict(…)’
- jellycell.cache.manifest.OutputRecord¶
None
- class jellycell.cache.manifest.ArtifactRecord(/, **data: Any)¶
Bases:
pydantic.BaseModelA file produced by a cell (via
jc.save,jc.figure,jc.table).Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config¶
‘ConfigDict(…)’
- caption: str | None¶
None
Human-readable caption for the artifact — used as the figure / table heading in tearsheets and the
alttext on image embeds.Optional, additive field (§10.1 safe). Populated when the producing
jc.*call passescaption="..."; otherwise the tearsheet falls back to the cell name.
- class jellycell.cache.manifest.Manifest(/, **data: Any)¶
Bases:
pydantic.BaseModelA single cell execution’s manifest (spec §2.3).
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- model_config¶
‘ConfigDict(…)’
- executed_at: datetime.datetime¶
None
- outputs: list[jellycell.cache.manifest.OutputRecord]¶
‘Field(…)’
- artifacts: list[jellycell.cache.manifest.ArtifactRecord]¶
‘Field(…)’
- classmethod from_json(text: str) jellycell.cache.manifest.Manifest¶
Parse a manifest from JSON text.
- write(path: pathlib.Path) None¶
Write to
pathas JSON with a trailing newline.
- classmethod read(path: pathlib.Path) jellycell.cache.manifest.Manifest¶
Read a manifest from disk.