antikythera_orchestrator.storage
¤
Classes¤
BaseSessionStorage
¤
BaseSessionStorage(session_id: str)
Abstract interface for session storage backends.
BlueprintStorage
¤
Functions¤
add_blueprint
¤
add_blueprint(blueprint: Blueprint) -> None
Store a blueprint with searchable metadata.
Parameters:
-
blueprint(Blueprint) –The blueprint to store.
get_blueprint
¤
list_blueprints
¤
remove_blueprint
¤
remove_blueprint(blueprint_id: str) -> None
Remove a blueprint from the database.
Parameters:
-
blueprint_id(str) –The ID of the blueprint to remove.
Raises:
-
RequestedBlueprintNotFound–If the blueprint with the given ID is not found.
ModelStorage
¤
Functions¤
add_model
¤
add_nesting
¤
Store a nesting result for a model.
Parameters:
-
model_id(str) –The ID of the model.
-
nesting(Any) –The nesting result to store (must be COMPAS serializable).
Raises:
-
RequestedModelNotFound–If the model with the given ID is not found.
get_model
¤
get_nesting
¤
list_models
¤
remove_model
¤
remove_model(model_id: str) -> None
Remove a model from the database.
Parameters:
-
model_id(str) –The ID of the model to remove.
Raises:
-
RequestedModelNotFound–If the model with the given ID is not found.
RequestedBlueprintNotFound
¤
Raised when a requested blueprint is not found in storage.
- API Reference antikythera_orchestrator
RequestedModelNotFound
¤
Raised when a requested model is not found in storage.
- API Reference antikythera_orchestrator
RequestedSessionNotFound
¤
Raised when a requested session is not found in storage.
- API Reference antikythera_orchestrator
SessionStorage
¤
SessionStorage(session_id: str)
Functions¤
load_session
¤
load_session() -> BlueprintSession | None
Load a complete BlueprintSession object from storage.
Returns:
-
BlueprintSession | None–The loaded session, or None if not found.
load_session_with_metadata
¤
load_session_with_metadata() -> dict | None
Load a complete BlueprintSession object with metadata from storage.
Returns:
-
dict | None–A dictionary containing 'session', 'started_at', and 'ended_at', or None if not found.
remove_session
¤
Remove a session and all its associated data from storage.
Raises:
-
RequestedSessionNotFound–If the session with the given ID is not found.
save_session
¤
save_session(session: BlueprintSession) -> None
Save a complete BlueprintSession object to storage.
This stores the entire session including: - Session metadata (state, params, timestamps) - The main blueprint and all inner blueprints - Composite task mappings and contexts
Parameters:
-
session(BlueprintSession) –The session to save.