caikit.runtime.servicers.info_servicer ====================================== .. py:module:: caikit.runtime.servicers.info_servicer .. autoapi-nested-parse:: This module contains the implementation for retrieving information about the library and services. Attributes ---------- .. autoapisummary:: caikit.runtime.servicers.info_servicer.log Classes ------- .. autoapisummary:: caikit.runtime.servicers.info_servicer.InfoServicer Module Contents --------------- .. py:data:: log .. py:class:: InfoServicer This class contains the implementation for retrieving information about the library and services. .. py:method:: GetModelsInfo(request: caikit.interfaces.runtime.data_model.ModelInfoRequest, context) -> caikit.interfaces.runtime.data_model.ModelInfoResponse Get information on the loaded models for the GRPC server Args: request: ModelInfoRequest context Returns: models_info: ModelInfoResponse DataObject containing the model info .. py:method:: get_models_info_dict(model_ids: Optional[List[str]]) -> Dict[str, List[Dict[str, Any]]] Get information on models for the HTTP server Returns: model_info_dict: Dict[str, List[Dict[str, str]]] Dict representation of ModelInfoResponse .. py:method:: _get_models_info(model_ids: Optional[List[str]] = None) -> caikit.interfaces.runtime.data_model.ModelInfoResponse Helper function to get the list of models Returns: model_info: ModelInfoResponse DataObject with model information .. py:method:: GetRuntimeInfo(request, context) -> caikit.interfaces.runtime.data_model.RuntimeInfoResponse Get information on versions of libraries and server for GRPC .. py:method:: get_version_dict() -> Dict[str, Union[str, Dict]] Get information on versions of libraries and server for HTTP .. py:method:: _get_runtime_info() -> caikit.interfaces.runtime.data_model.RuntimeInfoResponse Get information on versions of libraries and server from config .. py:method:: _try_lib_version(name) -> str Get version of python modules