def by_chat_id(self,chat_id: str) -> ChatItemRequestBuilder:
        """
        Provides operations to manage the collection of chat entities.
        param chat_id: The unique identifier of chat
        Returns: ChatItemRequestBuilder
        """
        if chat_id is None:
            raise TypeError("chat_id cannot be null.")
        from .item.chat_item_request_builder import ChatItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["chat%2Did"] = chat_id
        return ChatItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the collection of chat entities.
        param chat_id: The unique identifier of chat
        Returns: ChatItemRequestBuilder
        
msgraph/generated/chats/chats_request_builder.py