gen_ai_hub.orchestration.models.base module

class gen_ai_hub.orchestration.models.base.JSONSerializable

Bases: ABC

An interface for objects that can be serialized to JSON.

abstractmethod to_dict() Dict[str, Any]

Convert the object to a JSON-serializable dictionary.

Returns:

dictionary representation of the object.

Return type:

Dict[str, Any]