Artifacts
Here is an example how to fetch artifacts from the Multiverse library (e.g. Agents, Models, Protocol SDKs, etc.)
from almanak import Almanak
# Instantiate your Almanak client.
client = Almanak(
api_key="<YOUR_API_KEY>",
)
artifacts_list = client.library.artifacts.list()
print(artifacts_list)
Retrieve an existing artifact
# Retrieve an existing artifact
artifact = client.artifacts.get(artifact_id="123456")
# Can also retrieve via name
artifact = client.artifacts.get(artifact_name="bollinger")
Create a new artifact
# Create a new artifact, gets the ID
new_artifact = client.artifacts.create(
name="New Artifact", description="Detailed description of the artifact."
)
Update an existing artifact
updated_artifact = client.artifacts.update(
artifact_id="123456", name="Updated Artifact Name"
)
Delete an artifact
client.artifacts.delete(artifact_id="123456")