from oci.addons.adk import tool from oci.addons.adk import Toolkit, tool from get_config import get_config import oci class Compartments(Toolkit): @tool def get_tenancy_id(self): """ Get the OCID of the tenancy. Args: name: The name of the tenancy. Returns: The OCID of the tenancy. """ config = get_config() identity_client = oci.identity.IdentityClient(config) tenancy = identity_client.get_tenancy(config["tenancy"]).data return tenancy.id