content or point to an uploaded File with file_id.
Versions
When adding a new version, pass the currentversion you expect to replace. You can carry forward unchanged files from the previous version by referencing their sha256 instead of resending their contents:
Use one in a Session
Agents have asave_artifact tool. Saving again under the same name in the same Session adds a new version.
To give an agent an existing Artifact, mount it when you create the Session. It appears read-only at /mnt/artifacts/<name> (Status page becomes status-page):
Share and publish
A viewing link shows one pinned version until it expires. A publication creates a permanent public address that follows the latest version by default.Start from a template type
A “type” is just another Artifact whose files act as a base layer so child Artifacts only need to provide content or data. The repository ships three starter types inpackages/domain/src/Artifact/types: document, slides, and dashboard. Upload a type once from its directory, then create Artifacts from it with made_from:
Store data
Each Artifact has a JSON document database shared across all of its versions:artifact.json exposes to visitors, capped further by the viewing link or publication’s access level:
artifact.json
In the page, load
_/data.js and call artifactData: