Skip to main content

synth_ai.sdk.artifacts.client

HTTP client for artifacts API endpoints.

Classes

ArtifactsClient

Client for artifacts API endpoints. Provides methods to interact with the Synth AI artifacts API, including listing artifacts, retrieving model and prompt details, exporting models to HuggingFace, and accessing prompt snapshots. Methods:

list_artifacts

list_artifacts(self) -> Dict[str, Any]
List all artifacts (models and prompts).

get_model

get_model(self, model_id: str) -> Dict[str, Any]
Get detailed information about a model artifact.

get_prompt

get_prompt(self, job_id: str) -> Dict[str, Any]
Get detailed information about a prompt optimization job.

export_to_huggingface

export_to_huggingface(self) -> Dict[str, Any]
Export a model artifact to HuggingFace Hub.

get_prompt_snapshot

get_prompt_snapshot(self, job_id: str, snapshot_id: str) -> Dict[str, Any]
Get a specific prompt snapshot.

list_prompt_snapshots

list_prompt_snapshots(self, job_id: str) -> List[Dict[str, Any]]
List all artifacts (snapshots) for a prompt job.

get_models_on_wasabi

get_models_on_wasabi(self) -> Dict[str, Any]
Get models available on Wasabi.